[google-appengine] Re: Trying to get Image data

2010-08-16 Thread Yasser
Thanks! Problem solved. I used the blobstore BolbReader(blob_key) to read image data, then used EXIF.py (http://sourceforge.net/projects/exif- py/) to get image EXIF data: blob_reader = blobstore.BlobReader(blob_key) tags = EXIF.process_file(StringIO.StringIO(str(blob_reader.read( Thanks, Yass

[google-appengine] Re: Trying to get Image data

2010-08-09 Thread JavaJive
I have a similar need, to read SRTM files. Here's how I did it: try: da = open( "./SRTM/" + fn + ".hgt", "rb" ).read() # print "Opened data file: ./SRTM/%s.hgt" % fn if da:

[google-appengine] Re: Trying to get Image data

2010-08-09 Thread Geoffrey Spear
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 u