was not able to use open to open a binary file.... so what I did was use
urlfetch to fetch the image for me and read the content into BlobProperty()
Not sure why it took me so long to figure this out. Hope it helps someone.
thx

  def post(self,key):
    k=db.get(key)
      img=images.Image(urlfetch.Fetch("http://www.example.com/
"+k.image).content)
      img.rotate(90)
      jpg_data= img.execute_transforms(images.JPEG)
      k.image_blob=jpg_data
      k.put()

-Alex Goretoy
http://www.goretoy.com



On Mon, Feb 9, 2009 at 11:07 AM, alex goretoy
<aleksandr.gore...@gmail.com>wrote:

> How to read Binary file into GAE(Google App Engine) db.BlobProperty()
> datastore?
>
> -Alex Goretoy
> http://www.goretoy.com
>
>
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to