Include original file size in zipfile.
This commit is contained in:
parent
e8733b886c
commit
09a8cdfaf7
1 changed files with 3 additions and 1 deletions
|
@ -629,7 +629,9 @@ public class IndexBatchCreator {
|
|||
try {
|
||||
ZipOutputStream zout = new ZipOutputStream(new FileOutputStream(zFile));
|
||||
zout.setLevel(9);
|
||||
zout.putNextEntry(new ZipEntry(fileName));
|
||||
ZipEntry zEntry = new ZipEntry(fileName);
|
||||
zEntry.setSize(f.length());
|
||||
zout.putNextEntry(zEntry);
|
||||
FileInputStream is = new FileInputStream(f);
|
||||
byte[] BUFFER = new byte[8192];
|
||||
int read = 0;
|
||||
|
|
Loading…
Reference in a new issue