Here's a snippet in python:
upload_url = blobstore.create_upload_url('/blobstore_upload')
upload_data = {'image' : StringIO(photo_data)}
cookies = cookielib.CookieJar()
opener =
urllib2.build_opener(urllib2.HTTPCookieProcessor(cookies),
MultipartPostHandler.MultipartPostHandler)
result = opener.open(upload_url, upload_data)
result_data = result.read()
result_headers = result.info()
On Nov 22, 2010, at 6:13 AM, Remigius wrote:
> Is there a code snippet around somewhere that uploads to blobstore
> using URL fetch?
>
> --
> 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.
>
--
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.