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
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.
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
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