简体   繁体   English

GWT-为gwt应用程序提供图像的最佳方法

[英]GWT- Best way to give images for gwt application

which is the best way to serve images for the gwt application ... 这是为gwt应用程序提供图像的最佳方法...

eg: lot of images will be use by gwt app... image uploading,saving,changing, should be separate utility.. 例如:gwt应用程序将使用很多图像。图像上载,保存,更改应单独使用。

I have used Objectify once .. just want to know is there any better option .... 我曾经用过Objectify一次..只是想知道还有没有更好的选择....

Thanks in advance. 提前致谢。

Since you already used Objectify, I presume you are using App Engine as a hosting platform. 由于您已经使用过Objectify,因此我假设您正在使用App Engine作为托管平台。 Therefore, I recommend that you look at the Blobstore. 因此,我建议您查看Blobstore。 More docs here https://developers.google.com/appengine/docs/java/blobstore/ 此处提供更多文档https://developers.google.com/appengine/docs/java/blobstore/

The Blobstore is recommended to store and serve any user-uploaded pictures. 建议Blobstore存储和提供任何用户上传的图片。

For static images, you should use GWT's ClientBundle and ImageResource (see http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html ). 对于静态图像,应使用GWT的ClientBundle和ImageResource(请参阅http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM