Question

I have a Google AppEngine app (written in Python) in which I have stored a lot of images inside the BlobStore (which I access via images.get_serving_url( blob_key )).

I am trying to figure out how to use urlfetch to POST one of these images to a third party site (Flickr actually; I know I have to authenticate the request, which I have figured out already).

I'm fairly new to GAE, and I'm trying to learn the blobstore best I can.

Does anyone have any idea on how to grab the image binary data from the blobstore (give either the get_serving_url or the blob key), and then POSTing it inside a urlfetch request?

I've been googling all afternoon, but can't find any suitable examples.

Many thanks!

Was it helpful?

Solution

You can fetch the whole blob / image using the blob reader :

blob_reader = blobstore.BlobReader(blob_key)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top