rmi error in google app

前端 未结 2 2029
一整个雨季
一整个雨季 2021-01-23 06:09

I dont get the error when I use the following line

    FileItemIterator it = servletFileUpload.getItemIterator(request);

I get it when I use

2条回答
  •  臣服心动
    2021-01-23 06:40

    Commons FileUpload (1.2.1) is only semi-compatible with GAE. Only streaming API is supported but not the traditional API beacuse a local filesystem is not made available by GAE. In the stacktace, I see usage of DiskFileItem, which basically writes the uploaded file locally and deletes it later.

    See the section under Apache Commons FileUpload at GAE and support for Java frameworks

    Here's the streaming API usage.

提交回复
热议问题