Hi,How to convert zip file to byte array,can you please provide program??
If you have a zip file on disk, get the size using java.io.File.length(), allocate a byte array "buffer" of that size, open the file with FileInputStream, call read(buffer), close the FileInputStream.
If you have a byte array, open the file with a FileOutputStream, call write(byteArray), close the FileOutputStream.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.