Thanks

Apparently it worked but one question do

What kind of data is the return of the function tostring()????

Can i put it in a blob type of a database????or maybe in a longtext??

That'll be all
Thanks for the reply Kent

Alberto

>From: Kent Johnson <[EMAIL PROTECTED]> >CC: tutor@python.org >Subject: Re: [Tutor] Support >Date: Fri, 08 Apr 2005 11:59:24 -0400 > >Alberto Troiano wrote: >>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 > >maybe ima=Image.fromstring(im.mode,im.size,m) will work... > >Kent > >_______________________________________________ >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