Re: [Tutor] PIL and converting an image to and from a string value

2012-04-28 Thread Chris Hare
What I did: self.imageBuffer = StringIO.StringIO() image = Image.open(filename) image = image.resize((150,150),Image.ANTIALIAS) image.save(self.imageBuffer, format= 'PNG') self.imageBuffer.seek(0) image = Image.open(self.imageBuffer) So, that is how I got around the problem On Apr 27, 2012, at

Re: [Tutor] PIL and converting an image to and from a string value

2012-04-27 Thread Russell Smith
What did you do? On Friday, April 27, 2012, Chris Hare wrote: > > I got it figured out. > > On Apr 27, 2012, at 12:21 AM, Chris Hare wrote: > > > > > Here is what I am trying to: > > > > the application user chooses an image file. I want to store the image > data in a field in a sqlite database.

Re: [Tutor] PIL and converting an image to and from a string value

2012-04-27 Thread Chris Hare
I got it figured out. On Apr 27, 2012, at 12:21 AM, Chris Hare wrote: > > Here is what I am trying to: > > the application user chooses an image file. I want to store the image data > in a field in a sqlite database. My understanding from the reading I have > done is that I have to conve

[Tutor] PIL and converting an image to and from a string value

2012-04-26 Thread Chris Hare
Here is what I am trying to: the application user chooses an image file. I want to store the image data in a field in a sqlite database. My understanding from the reading I have done is that I have to convert the image data into a string , which I can then store in the database. Additionall