Hi!
The following code just reads and writes an Excel file. If this file
contains a graphic (bmp and jpg tested) the resulting output file is no
more readable by Excel (with POI 2.5). With 2.0 there is now problem. Just
tried the new release in the hope that bug #27153 might be fixed.
POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream
("d:/test.xls"));
HSSFWorkbook wb = new HSSFWorkbook(fs);
HSSFSheet sheet = wb.getSheetAt(0);
// Write the output to a file
FileOutputStream fileOut = new FileOutputStream("d:/test2.xls");
wb.write(fileOut);
fileOut.flush();
fileOut.close();
Marc.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]