Urbanleg
Urbanleg

Reputation: 6532

google app engine (java) - storing url images on the datastore

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)

Upvotes: 1

Views: 1365

Answers (3)

iein valdez
iein valdez

Reputation: 660

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)

Upvotes: 1

tsachev
tsachev

Reputation: 1161

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

Upvotes: 0

Peter Knego
Peter Knego

Reputation: 80330

You can also directly write file to Blobstore.

Upvotes: 0

Related Questions