On Fri, Feb 21, 2014 at 2:02 PM, Bradford Stephens < [email protected]> wrote:
> I want to: > -Upload an image to a REST API (preferably served by Endpoints) -- no > browser > -Store that image in Google Cloud Storage > The first two have me really puzzled...any example code out there? > Endpoints doesn't accept the multipart/form-data encoding ( http://stackoverflow.com/a/15440083 ) so you can't upload the image directly to Endpoints. You'll have to configure a separate servlet to handle the file upload; Alejandro's code will handle that. On the client side, you can use the standard HttpUrlConnection to open the upload URL and upload the file via DataOutputStream. ----------------- -Vinny P Technology & Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
