poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chitão <christian.teixe...@neogrid.com>
Subject File Size Problem!
Date Thu, 03 Jan 2008 19:55:45 GMT

Hello there, 

I know it this has been posted a couple of times, but didn't helped me out..
Some questions:

¿¿Why does the files generated gets bigger??
I saw the byte files, and they are resonably different, some thing from
original missing - no problem with that, who is the creator- but lots of
'-1' bytes at the end of the file, negative bytes from original become valid
bytes, really lots of changes...

¿¿Is this api the old jxl or it's just my impression??

the original file was, 871 windows kb and the outfilename.xls was 966!!

why that? anyone?

thaks for your time!

I'll upload my xls and here goes my super code:
http://www.nabble.com/file/p14604200/qweasd.xls qweasd.xls 

	private String         filename     = null;

	protected HSSFWorkbook hssfworkbook = null;

	public GenerateProductionExcelAction(String inFile, String outFile)
	throws IOException
		this.filename = inFile;
		POIFSFileSystem fs =
			new POIFSFileSystem(new FileInputStream(inFile));

		hssfworkbook = new HSSFWorkbook(fs);

		HSSFWorkbook     wb     = hssfworkbook;
		FileOutputStream stream = new FileOutputStream(outFile);



	public static void main(String [] args)
		String fin = "qweasd.xls";
		String fout = "outfilename.xls";
			GenerateProductionExcelAction  hssf   = new
GenerateProductionExcelAction(fin, fout);
		catch (Exception e)

View this message in context: http://www.nabble.com/File-Size-Problem%21-tp14604200p14604200.html
Sent from the POI - User mailing list archive at Nabble.com.

To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org

View raw message