1

I'm building an application that supposed to store some images from user's Facebook accounts into my datastore for later usage,

All i could find so far is how to upload an image directly from a form:

 (form action="(<%= blobstoreService.createUploadUrl("/upload") %>" method="post" enctype="multipart/form-data">
        (input type="file" name="myFile">
        (input type="submit" value="Submit">
    (/form>

that's not what I'm looking for, i would like to store images from a known url such as: www.otherSite.com/imagename.jpg to my datastore. (i know how to fetch the images from the FB graph api already)

systempuntoout
  • 71,966
  • 47
  • 171
  • 241
Urbanleg
  • 6,252
  • 16
  • 76
  • 139

3 Answers3

1

Take a look at this StackOverflow question which also includes some code examples in Java.

How to upload and store an image with google app engine (java)

Community
  • 1
  • 1
iein valdez
  • 660
  • 4
  • 11
0

You can also directly write file to Blobstore.

Peter Knego
  • 79,991
  • 11
  • 123
  • 154
0

I think gae has this as a separate service. UrlFetch- https://developers.google.com/appengine/docs/java/urlfetch/

tsachev
  • 1,111
  • 10
  • 14