Zsombor,

Follow the implementation outlined in this excellent blog post. It
explains how to upload to blobstore from within your app.

Good luck,

Michael Weinberg


http://jeremyblythe.blogspot.com/2010/10/manipulating-images-in-blobstore.html


On Nov 28, 8:08 am, Zsombor <gzsom...@gmail.com> wrote:
> Hello,
>
>  I would like to modify the content of the BlobStore from inside my
> webapp. I mean, the user uploads a picture into blobstore, after in
> the background the app should create thumbnails, and stores that
> thumbnails too in the BlobStore.
>  I figured out, that from my 'servlet', I can call
> BlobstoreServiceFactory.getBlobstoreService().createUploadUrl("/
> internal/uploadBlob/"+id);
> and to the acquired URL I can post the content - with proper multi-
> part encoding. It works in the development mode, however in the live
> system, it always fails with a generic server error message. I'm sure
> that my code doesn't gets called - nothing refers to /internal/
> uploadBlob/ in the request log. From the response headers, it seems
> that the upload server responding :
> {server=[Upload Server Built on Nov 11 2010 15:36:58 (1289518618)],
> date=[Sun, 28 Nov 2010 12:54:40 GMT], pragma=[no-cache], expires=[Fri,
> 01 Jan 1990 00:00:00 GMT], cache-control=[no-cache, no-store, must-
> revalidate], content-length=[456], content-type=[text/html], x-google-
> cache-control=[remote-fetch], via=[HTTP/1.1 GWA]}
>
> Is there anybody, how noticed similar behaviour? Or better, know how
> to do it correctly ?
>
> BR,
>  Zsombor

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to