byte[] zipFileAsByteArray があります
This zip file has rootDir --|
| --- Folder1 - first.txt
| --- Folder2 - second.txt
| --- PictureFolder - image.png
必要なのは、ディスクにファイルを保存せずに、2 つの txt ファイルを取得して読み取ることです。メモリ内で行うだけです。
私はこのようなことを試しました:
ByteArrayInputStream bis = new ByteArrayInputStream(processZip);
ZipInputStream zis = new ZipInputStream(bis);
また、別の方法で画像を取得する必要があります。このようなもの:
public byte[]image getImage(byte[] zipContent);
誰かがそれを行う方法のアイデアや良い例を教えてくれますか?