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
  • 69,075
  • 45
  • 164
  • 239
Urbanleg
  • 5,802
  • 16
  • 70
  • 137

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,504
  • 10
  • 122
  • 151
0

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

tsachev
  • 1,031
  • 10
  • 13