图片使用网上工具 计算的 sha 256 值 :2c49339931090de19d94d200c1a697ff893691aeb53e4afa795348ba25e32995
以下为微信侧返回:
头部信息:
wx-response:HttpResponseProxy{HTTP/1.1 400 Bad Request [Server: nginx, Date: Fri, 06 Sep 2019 07:16:40 GMT, Content-Type: application/json; charset=utf-8, Content-Length: 84, Connection: keep-alive, Keep-Alive: timeout=8, Cache-Control: no-cache, must-revalidate, X-Content-Type-Options: nosniff, Request-ID: za3ear, Content-Language: zh-CN, Wechatpay-Nonce: 8183ae5d673479202d9ffe973839fe1b, Wechatpay-Signature: DNs3uHbMiIOv+/frkRO3faIxkjm/0ZSGscuWo7VObjAgIlQlNihVJkqmS358kX6gb2BDHsrrSRfmjaNiPXrCRiNy1sLHgETfeNG+WWXPuqp3dNlb0g7fElX+JEtOq7ZdRvyMFZ1oRNz9He5u6Lk0pF8ZYlu1bN2W3jH2iedY4RJphtdQw4wK2j66leW1Ia/3SDcSkJj1D7xv8V+Ikm6Afq0DD4RP8hGwDoTBuO0IXcAZumJtI5FxFulxruy7XIrEq4joOGc1CFXqsE0c+UzfIFXPImuHB8kUiLj+9MW3z7KOBP1JSkXTK9yapbqv8RP5mCd9C7j7YpkkmrN3Sg672w==, Wechatpay-Timestamp: 1567754200, Wechatpay-Serial: xxx ] ResponseEntityProxy{[Content-Type: application/json; charset=utf-8,Content-Length: 84,Chunked: false]}}
body信息:
{"code":"PARAM_ERROR","message":"图片sha256值有误,请检查后重新提交"}
代码环境:
JDK 1.8.0.181
org.apache.httpcomponents:httpclient:4.5.9
好的,有问题及时沟通。
问题已解决
文件上传流中 分隔符 必须存在