我正在将一些图片上传到 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/