0

Normally to host a website on app-engine, I can put all my image files in a static directory, say img, and then in the yaml file have

  • url: /img static_dir: img

Such a usage makes sense when the images are for displaying in my website itself.

But now I have an endpoint api. For my case, I need to store some images in my backend for my users to access. Instead of putting them in static directory, I want to put them in the blobstore and use blob serving url to serve them. Is there a way to deploy images to the blobstore and then get the serving urls?

Pouton Gerald
  • 1,625
  • 22
  • 32

1 Answers1

0

You could implement a task that checks if the files are in the blobstore or not, and if not, uploads them to the blobstore. Then you can run this task in cron or as a warmup task.

Still, it will be best for you to use the static web serving and pull the static files in HTTP from the static storage. It will perform much better than blobstore (in fact, it performs much better than most static web hosting), and will cost you less.

onon15
  • 3,620
  • 1
  • 18
  • 22
  • Thank you for the suggestion. I have a follow up question: http://stackoverflow.com/questions/16510724/serve-static-image-along-side-java-google-enpoint-api – Pouton Gerald May 12 '13 at 18:35