New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring框架from表单提交多图到Zimg #115
Comments
That's good! |
用这种方式每次只能上传一张吗? |
@longzhiyou 你说的这个情况很奇怪我从未见过,麻烦把两次请求时zimg的log摘出来我看看是什么情况。 |
用抓包软件看到,body中两种方式上传的内容是不同的,后面的我是直接上传的二进制图片,如果我把这个二进制数据直接保存file确定是没有问题的,但是上传后,返回成功,得到的md5是不正确的。 |
{"ret":false,"error":{"code":1,"message":"File type not support."}} 什么情况 |
个人建议 在js界面上能不能直接与zimg服务器通信呢,而不是在后台的coller里接受完了在去保存到图片服务器上,因为在[MultipartResolver]的时候,是意味着客户端已经将图片发送到web服务器上(可以查看一下MultipartFile的属性能找到在web服务器的临时目录中)这样是不是性能损耗很多,我目前这个项目做的在js也就是客户端直接与图片服务器进行通信,当然如果有业务需求的话,需要临时图片可以这样做 |
js可以直接与zimg服务器通信啊,百度有一个webload实现了图片的压缩,与二进制上传 |
HttpTookit.sendPost方法可以参考#114
The text was updated successfully, but these errors were encountered: