Create image serving URL for new Blob file

孤人 提交于 2019-12-06 09:37:04

Why would you want to do that? Once you transform an image it is cached and anyway it is always fast. If you really feel you want to save it just use urlfetch to read the data and store them in the BlobStore ;-)

The following works fine when executed at the end of the code posted in the question:

String url = imagesService.getServingUrl(newBlobKey)

The URL can then be used to scale and crop the new image as described in the docs http://code.google.com/appengine/docs/java/images/overview.html#Transforming_Images_from_the_Blobstore

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