If you're not modifying the image in any way using the Images API, you
probably just want to read the raw data from the blobstore rather than
instantiating an images.Image from the data.  You may be able to get
the data out of images.Image(blob_key=blob_key_reference)._image_data,
but the leading underscore in the property name is a key that this
isn't a great idea.

Generally, you get the image data by calling .execute_transforms()
after doing one or more transforms.


On Aug 8, 8:21 pm, Yasser <[email protected]> wrote:
> Hello,
>
> I'm trying to get image data, in order to get EXIF data out of it.
> However, when I read the image file in my dev server, I get this:
> <google.appengine.api.images.Image object at 0x772e7b0>
>
> Hence, I'm not able to read the image data.
>
> What am I missing here?
>
> FYI: I'm using the following to read the image file:
> img_exif =
> StringIO.StringIO(images.Image(blob_key=blob_key_reference))
> data = img_exif.read(100)
> logging.info(str(data[0:]))
> # ---> this reads <google.appengine.api.images.Image object at
> 0x772e7b0>
>
> Thanks,
> Yasser

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to