开发者

Uploading File on GAE using gwt-upload

开发者 https://www.devze.com 2023-03-14 07:03 出处:网络
Can someone know how to upload files using gwt-upload implemen开发者_高级运维tation at http://code.google.com/p/gwtupload/ on Google ApplicationEngine.The download page lists the gwtupload-gae artifac

Can someone know how to upload files using gwt-upload implemen开发者_高级运维tation at http://code.google.com/p/gwtupload/ on Google Application Engine.


The download page lists the gwtupload-gae artifacts, which are "GwtUpload for GAE servers".


See the second post by dindeman: GWTUpload using GAE.

The following link may also help shed light on what's currently going on with GWTUpload-GAE in relation to Google's new FileService API: https://groups.google.com/forum/#!topic/gwtupload/SYV6AGp7qkY.


No it doesn't work: when I try to access the bytes, I find the size is 0

public class UploadFileHandler extends AppEngineUploadAction {
  @Override
  public String executeAction(HttpServletRequest request, List<FileItem> sessionFiles) throws UploadActionException {

    for (FileItem item : sessionFiles) {
      String name = item.getName();
      byte[] bytes = IOUtils.toByteArray(item.getInputStream());
    }
  }}
0

精彩评论

暂无评论...
验证码 换一张
取 消