GAE Blobstore: ImagesService.getServingUrl() gives me smaller images

醉酒当歌 提交于 2019-12-03 19:56:23

问题


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:


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



来源:https://stackoverflow.com/questions/9622095/gae-blobstore-imagesservice-getservingurl-gives-me-smaller-images

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!