Hello,

I have an Android application and I want to upload photos to my
appEngine.
I send the photo using a "image/jpeg" content-type and a POST request.

However, the only code that I've found needs multipart/form-data or
multipart/mixed :

 ServletFileUpload upload = new ServletFileUpload();
 FileItemIterator iter = upload.getItemIterator(req);
 FileItemStream imageItem = iter.next();
 InputStream imgStream = imageItem.openStream();
 Blob imageBlob = new Blob(IOUtils.toByteArray(imgStream));

Do you have a working code or another solution ?

Thanks

-- 
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-java@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