How long does URL from ImagesService.getServingUrl

2019-04-30 09:48发布

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?

1条回答
走好不送
2楼-- · 2019-04-30 10:33

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.

查看更多
登录 后发表回答