posted 11 years ago
HI All,
I have to parse through a zip file which contains a folder and a file and upload these separetly onto the server. The zip file is obtained in the formof an inputstream from teh client side, using http request.
I am not sure how to parse a inpustream and check for a folder or a file and then proceed to the upload accordingly. Can anyone help me ?
If there is an alternate way of passing information to the upload function apart from passing it as an inputstream, then please let me know. This is what I have for now
MultipartFile GetFile = null;
GetFile = request.getFile(Param);
UploadFile(GetFile.getInputStream());
public UploadFIle(InputStream in) {
// Need to parse this inputsream
}