来自ImagesService.getServingUrl的URL持续多久 [英] How long does URL from ImagesService.getServingUrl last

查看:123
本文介绍了来自ImagesService.getServingUrl的URL持续多久的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在App Engine中使用blobstore和imagesService。我想知道从imagesService.getServingUrl(blobKey)获取的URL会持续多久。如果我使用它来存储用户个人资料图片,我可以将此URL存储在用户中,还是应该存储BlobKey并在每次需要照片时都获取servingUrl?

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?

推荐答案

URL将无限期地持续。无论如何,您仍然应该仍然存储blobkey,否则,您将无法在不再需要时删除Blob,也无法获取备用图片提供网址。

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.

这篇关于来自ImagesService.getServingUrl的URL持续多久的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆