/v3/3rd/files/{file_id}/upload接口能收到文件内容,保存后打开报错<img src="https://solution-community.wps.cn/uploads/post/4Nm73xAytto.png" alt="image.png"/> 原始文件可以打开,没有问题 <img src="https://solution-community.wps.cn/uploads/post/4Nm7gfjR5xA.png" alt="image.png"/>
/v3/3rd/files/{file_id}/upload接口能收到文件内容,保存后打开报错<img src="https://solution-community.wps.cn/uploads/post/4Nm73xAytto.png" alt="image.png"/> 原始文件可以打开,没有问题 <img src="https://solution-community.wps.cn/uploads/post/4Nm7gfjR5xA.png" alt="image.png"/>
您好,file是可以直接保存的。upload接口以multipart/form方式提交,参数里会带有文件的字节size 和 内容指纹sha1,您可以尝试以下方式排查问题:
可以了,1 2 点对比完全一致,接收文件没有问题,问题在于getBytes后文件内容转换过程。多谢提供排查思路