title: Google App Engine Use Blobkey
body: <p>Hi there i am trying to make a servlet that allows admins to upload images and any google users to view these images, so far im working off the program available at <a href="https://developers.google.com/appengine/docs/java/blobstore/overview" rel="nofollow">https://developers.google.com/appengine/docs/java/blobstore/overview</a> </p>
  
  <p>and when i upload an image, it serves it straight away using a very long blobKey? and stores a copy of itself in the local_db.bin</p>
  
  <p>What i can't find out is if there is any way to shorten the blobkeys for use? For instance i want to have a gallery which displays all the images that have been uploaded by users, however so far the only way i can get the images from the database is by calling something like this</p>
  
  <p>res.sendRedirect("/serve?blob-key=" + blobKey.getKeyString())</p>
  
  <p>but this only works for one image and i would need to hardcode each new blobKey in order to display it on a seperate page, also meaning when a user uploads a new image i will have to edit the code and add a new link for the new image?</p>
  
  <p>Basically what i want to find out is if there is anyway to easily define each blob stored in the local_db.bin.</p>
  
  <p>Any help will be much appreciated please dont hesitate to ask for more details.</p>
  
  <p>Thanks</p>