Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Excel File Load Help - Java WebDynpro

Hi Forum Teams,

Getting the following Error when trying to interpret the data stream:

'Unable to recognize OLE Stream '

Scenario: Have Resource type field field bound to File Upload UI Element 'Resource' parameter.

import java.io.ByteArrayInputStream;

import jxl.Cell;

import jxl.Sheet;

import jxl.Workbook;

try {

ByteArrayInputStream bais = new ByteArrayInputStream (ResourceElem.RESOURCE.getBytes());

Workbook workbook = Workbook.getWorkbook(bais) ;

Sheet sheet = workbook.getSheet(0);

Cell a1 = sheet.getCell(1, 1);

Cell a2 = sheet.getCell(1, 2);

} catch (Exception ex) { wdComponentAPI.getMessageManager().reportException(vex.getLocalizedMessage(),true); }

Uploading an Excel document saved in either 2003 or current format, simple no-frills excel doc.

Any ideas?

Former Member
Not what you were looking for? View more on this topic or Ask a question