jpeg images in python

Gilles Lenfant glenfant at equod.com.nospam
Mon Nov 20 13:47:21 EST 2000


jf = open('myimage.jpg', 'rb')
binaryJPGbuffer = jf.read()
jf.close()

You (binaryJPGbuffer) got it as a sequence of bytes.

<setjon at my-deja.com> a écrit dans le message news:
8vb9df$87a$1 at nnrp1.deja.com...
> How can i get i binary file like jpeg into a variable in python?
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.




More information about the Python-list mailing list