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:
                                        # Do something with the byte array in da
                        except IOError:
                                # print "Could not open data file: 
./SRTM/%s.hgt" % fn


On Aug 9, 1:21 am, 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