I have a Erlang application and I need to read a zip file pass in a POST request. At the moment I'm use this solution but return an error.
FileUnziped = zip:unzip(Payload),
I pass in a body of a post request like this image
And the error is:
{error,bad_eocd}
Is there any solution for this problem?
1条答案
按热度按时间pxiryf3j1#
看起来您尝试的
unzip
的Payload
/*.zip
数据/文件已损坏或未正确打包,请参阅zip.erl中的逻辑。示例如下:确保在
Payload
中提供了正确的数据。