Home  >  Q&A  >  body text

java - Android 客户端上传到服务关出错?

我在网上找了个 Java Servlet写的个小服务,用来接收客户端上传的图片,可是总是提示
the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null
我手机端提示上传成功 走了成功的回调方法 就是服务端总提示这个错误。!

搞不懂了。麻烦大师给看看! 我手机端上传图片用的是AsyncHttpClient
这个服务端的demo我用的是 此人的:http://liucanwen.iteye.com/bl...

PHP中文网PHP中文网2764 days ago345

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-18 10:28:03

    Use multimedia to upload. This is in the form of a binary file. Upload accepted

    reply
    0
  • Cancelreply