How to covert image data to string

hello, every one! How to convert the Image data to string or list data .Thanks !

compress() on the image. It’s then a jpg byte string. If you want the image in a string with an rgb value per byte you can manually write python code to access each pixel and spit out text.