Lumpy
Lumpy

Reputation: 3652

How long does URL from ImagesService.getServingUrl last

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?

Upvotes: 5

Views: 873

Answers (1)

Nick Johnson
Nick Johnson

Reputation: 101149

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.

Upvotes: 3

Related Questions