Hi

Thanks Brian for the tip

I tried the code below but the image gets messed up:

import Image

im=Image.open("auto.jpg")

im.show() ###This is to show the image so you can see it

m=im.tostring()

ima=Image.fromstring("RGB",im.size,m)###I tried also with F,RGBA and L mode instead of RGB

ima.show()

Thanks in advanced

Alberto

>From: Brian van den Broek <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: tutor@python.org >Subject: Re: [Tutor] Support >Date: Fri, 08 Apr 2005 11:03:39 -0400 > >Alberto Troiano said unto the world upon 2005-04-08 10:35: >>I am trying to make an application with Python 2.3.4, PIL 1.1.5 and >>I want to convert an image file to binary so I can store it in a >>MySQL database and then retrieve it and show it from binary to >>Image again so I can show the image >> >>Please help >> >>Thanks >> >>Alberto > >Hi Alberto, > >It will be much easier for people to help if you describe what you >have tried and where you are having problems. Ideally, show the list >some of what you have done -- that will give those responding >something from which to start. > >Best, > >Brian vdB > >_______________________________________________ >Tutor maillist - Tutor@python.org >http://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to