java.lang.NullPointerException while creating DiskFileItem

前端 未结 5 1588
我寻月下人不归
我寻月下人不归 2021-01-13 04:14

I am trying to write a unit test for handling a file upload controller using Spring 3. Now if I send the image over to my service method through the controller everything wo

5条回答
  •  再見小時候
    2021-01-13 04:55

    Although not entirely related to the question. I ran into the same exception when deploying some file-upload code to GAE. I modified systempuntoout's code from here using apache fileupload on GAE (which uses the streams part of apache commons) which then worked fine.

提交回复
热议问题