简体   繁体   English

使用Jersey上载zip文件

[英]Uploading a zip file using Jersey

I am getting an HTTP POST request via which passes a .zip file. 我收到一个HTTP POST请求,通过该请求传递一个.zip文件。 I am using Jersey to implement this. 我正在使用Jersey来实现这一点。

I need to download the zip file and unzip the file. 我需要下载zip文件并解压缩该文件。 I know how to unzip the file, but not sure how to go about downloading the file. 我知道如何解压缩文件,但不确定如何下载文件。

Please help me out as i am a beginner in this. 请帮助我,因为我是初学者。

Thanks 谢谢

After going through many many questions on stackoverflow and online sites, I got to know a very foolish mistake made by me. 在对stackoverflow和在线站点进行了许多问题之后,我知道了我犯的一个非常愚蠢的错误。

I did not include the jersey-multipart.jar file. 我没有包含jersey-multipart.jar文件。

Thanks for the help anyways. 无论如何,谢谢您的帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM