GAE Blobstore: ImagesService.getServingUrl() gives

2020-02-28 05:07发布

I'm uploading some images to GAE's Blobstore. Upload goes succesfully and when i see the images in GAE console i can see that they're stored in the expected size and resolution.

According to this site, to get a URL to the uploaded image i can use this:

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

The resulting URL points to a smaller version of the uploaded images (in size and quality). How can i get a URL to the full size image stored in Blobstore?

1条回答
地球回转人心会变
2楼-- · 2020-02-28 05:53

you can append =s0 parameter after the url to get full sized image.

查看更多
登录 后发表回答