पहचानने में असमर्थ मैं अपनी .csv फ़ाइल से सेल डेटा प्राप्त करने का प्रयास कर रहा हूं लेकिन यह त्रुटि हो जाती है: jxl.read.biff.BiffException: असमर्थ ओएलई स्ट्रीमजेएक्सएल त्रुटि को हल करने के लिए कैसे करें: jxl.read.biff.BiffException: OLE स्ट्रीम
मुझे यह समझने में नहीं आता है कि कृपया इसे हल कैसे करें, कृपया मुझे कुछ समाधान दें यह कोड jxl api & के लिए है .csv के लिए एपीआई समर्थन है? संदर्भ के लिए
कोड:
public void read() throws IOException, BiffException {
File inputWorkbook = new File(inputFile);
try
{
w = Workbook.getWorkbook(inputWorkbook.getAbsoluteFile());
// Get the first sheet
Sheet sheet = w.getSheet(0);
// Loop over first 10 column and lines
for (row = 1; row < sheet.getRows(); row++)
{
ReadExcelLotSizeEntity readExcelLotSizeEntity =new ReadExcelLotSizeEntity();
cell = sheet.getCell(1,row);
type= cell.getType();
if (cell.getType() == CellType.LABEL)
{
symbol=cell.getContents();
System.out.println(":::::::::::::::::"+symbol);
readExcelLotSizeEntity.setSymbol(symbol);
}
int col=2;
cell = sheet.getCell(col,row);
while(!cell.getContents().equals("")||cell.getContents()!=null)
{
System.out.println("||||||||||||||||"+cell.getContents());
cell=sheet.getCell(col,row);
col++;
}
lotSize= new Double(cell.getContents());
readExcelLotSizeEntity.setLotSize(lotSize);
readExcelLotSizeEntity.setCreateUserId(1L);
readExcelLotSizeEntity.setCreateDtTm(new Date());
readExcelLotSizeHome.persist(readExcelLotSizeEntity);
}
} catch (BiffException e) {
e.printStackTrace();
}
}
यह उत्तर नहीं है, यह आपके प्रयास से 4 साल पहले दिए गए सबसे लोकप्रिय उत्तर का एक कट-पेस्ट जॉब है! – DaveRlz