On Mon, Mar 10, 2014 at 3:10 AM, hitesh jain <[email protected]> wrote:
> I am making an restful call to my application which is deployed in google > app engine. I pass in the image url to the http request. I want to fetch > the image content from the URL and store the byte data into appengine. To > fetch the image data I can use > > URLFetchService. To store the image data which can be more than 1 mb what is > the best way to do that? In this datastore entity I think I can store only > 1MB byte array. > > Generally what you'd want to do is retrieve the image via the URL Fetch service, then write it into Google Cloud Storage: https://developers.google.com/appengine/docs/java/storage#google_cloud_storage >From there, if you need the file, you can serve it directly from Cloud Storage or pipe it through App Engine for handling. On Mon, Mar 10, 2014 at 3:10 AM, hitesh jain <[email protected]> wrote: > I have seen google blob store service but that expects HttpRequest as input > parameter and I will have to use the > httpclient api to create a POST request and submit to the upload url as > generated blobstoreService.createUploadUrl("/upload") > > The createUploadUrl route is for uploading files themselves, while above you stated you were passing image URLs. If you want to upload the image file (not the URL) then yes, use blobstore's createuploadurl form. ----------------- -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/d/optout.
