On Wed, Nov 13, 2013 at 8:28 AM, Ben Evans <[email protected]>
 wrote:

> This seems to work and upload the image (Although I get a 404 error
> because the "/uploaded" page does not exist). However, I have no idea how I
> can find the key. How can I find this key?
>
>

You can pass the request object into BlobstoreService.getUploads(req) and
retrieve a Map representing the file names and the blob keys of the files
uploaded. From there, you can persist the keys into the datastore/Cloud
SQL/etc for further searching or later usage. See the BlobstoreService
Javadoc for the documentation:
https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/blobstore/BlobstoreService#getUploads(HttpServletRequest)


On Wed, Nov 13, 2013 at 8:28 AM, Ben Evans <[email protected]>
 wrote:

> However, for some reason the image at the url has kind of inverted colours
> etc. (black is blue and white is black). The images I am uploading are
> indexed png's.
>
>

If you attempt to view the images through the Blob Viewer section on the
App Engine admin console (there's a Download link on each blob page), are
the images shown there inverted or correctly displayed?


-----------------
-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.

Reply via email to