Question

I'm working with the blobstore and imagesService in App Engine. I'm wondering how long a URL I get from imagesService.getServingUrl(blobKey) will last. If I'm using this to store a users profile picture, can I store this URL in the user or should I store the BlobKey and get the servingUrl each time i need the picture?

Was it helpful?

Solution

The URL will last indefinitely. You should definitely still store the blobkey anyway, though, or you will have no way to delete blobs once you no longer need them, or to get alternate image serving URLs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top