I have an image (jpeg). I get the bytes from it simply using open('img.jpg', 'rb'). And for instance I send that bytes to my friend. So which way using Python can he get conversely operation - from bytes the image? How to decode it?
- the way if he knows the format - JPEG for example.
- the way if he doesn't know the format. Is there any ways?