Hi,

I am using POI to modify an excel sheet. But somehow the file size
increases a lot even if I don't modify anything, and just save it.
When I open that saved excel sheet in Microsoft Excel, and save it, the
file size is again decreased. I am using poi version 2.5.

My code is as follows


POIFSFileSystem fs = *new* POIFSFileSystem(*new* BufferedInputStream(is));

HSSFWorkbook wb = *new* HSSFWorkbook(fs);

fos = *new* FileOutputStream(filename);

wb.write(fos);

Thanks,
Niharika

Reply via email to