gpt4 book ai didi

google-app-engine - GAE Blobstore : ImagesService. getServingUrl() 给我较小的图像

转载 作者:太空宇宙 更新时间:2023-11-03 15:19:48 25 4
gpt4 key购买 nike

我正在将一些图片上传到 GAE 的 Blobstore。上传成功,当我在 GAE 控制台中看到图像时,我可以看到它们以预期的大小和分辨率存储。

根据 this site , 要获取上传图片的 URL,我可以使用这个:

BlobKey blobKey = (BlobKey) blobs.get("image");
ImagesService imagesService = ImagesServiceFactory.getImagesService();
String imageUrl = imagesService.getServingUrl(blobKey);

生成的 URL 指向上传图片的较小版本(尺寸和质量)。我如何获取存储在 Blobstore 中的全尺寸图像的 URL?

最佳答案

您可以在 url 后附加 =s0 参数以获得全尺寸图像。

关于google-app-engine - GAE Blobstore : ImagesService. getServingUrl() 给我较小的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9622095/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com