IT정리노트

블로그 이미지

Edward. K

메멘토적 기억능력을 소유한 개발자 노트.

[Exception] Unable to recognize OLE stream

Programming/JAVA 2008. 4. 21. 09:50
반응형
근데..이거 뭐가 문제 여서 찾아보고 해결한거였지? -_-;


jxl.read.biff.BiffException: Unable to recognize OLE stream  
2005. 12. 1 ?? 2:28

Click to email this message

 
hi,
I am trying to dynami ally generate Excel sheet using Java code.
Wht I did was I generated the numbers in NOTEPAD and rename it with .xls.
Now when I am trying to read the .xls file using JExcelApi..
I am getting the following error
jxl.read.biff.BiffException: Unable to recognize OLE stream

Can any one tell me what should I do..to over come it.....
If I have to read the filr from Notepad it self.
Vijay
 
TheTincho
Posts:6
Registered: 6/13/06
Re: jxl.read.biff.BiffException: Unable to recognize OLE stream  
2006. 6. 13 ?? 6:11 (reply 1 of 1)

Click to email this message

 
the file that you create isn't in excel format, you can generate the numbers in notepad, separated by comas (,) and save the file as comma separated values (.csv) and open this file with excel and save as theNameWhatYouWant.xls (select the format in de combo box)



음... 엑셀 문서 관련한 에러 였었구나아..-_-;

Amrish_Nagar
Posts:21
Registered: 1/9/08
Re: jxl.read.biff.BiffException: Unable to recognize OLE stream   
2008. 6. 12 ?? 3:23 (reply 2 of 3)  (In reply to #1 )

Click to email this message

 
Hi ,,
I am also getting the same error message ..
What i have done is i have read a xls file from the browser and write it to a specific location and then trying to read it by
Workbook but it is giving me this error............The below is the part of my code
ServletInputStream in = request.getInputStream();
 
  byte[] line = new byte[512];
  int i = in.readLine(line, 0, 512);
  int boundaryLength = i - 2;
  String boundary = new String(line, 0, boundaryLength); 
    while (i != -1) {
    String newLine = new String(line, 0, i);
    if (newLine.startsWith("Content-Disposition: form-data; name=\"")) {
     
   
 
//Some more lines
      //this is the file content
      i = in.readLine(line, 0, 512);
      i = in.readLine(line, 0, 512);
    
      
      ByteArrayOutputStream buffer = new ByteArrayOutputStream();
      newLine = new String(line, 0, i);
      while (i != -1 && !newLine.startsWith(boundary)) {
               buffer.write(line, 0, i);
        i = in.readLine(line, 0, 512);
        newLine = new String(line, 0, i);
      }
      
        // save the uploaded file
        RandomAccessFile f = new RandomAccessFile(savePath + filename, "rw");
        byte[] bytes = buffer.toByteArray();
        f.write(bytes, 0, bytes.length - 2);
        f.close();
      
      }
      }
    i = in.readLine(line, 0, 512);
 
  } // end while
Uploadfilepath = savePath + filename;
WorkbookSettings ws = new WorkbookSettings();
Workbook workbook = Workbook.getWorkbook(new java.io.File(savePath+"\\" + filename),ws);//Here the error is
 
WorldOfJava
Posts:81
Registered: 7/13/06
Re: jxl.read.biff.BiffException: Unable to recognize OLE stream   
2008. 9. 23 ?? 4:18 (reply 3 of 3)  (In reply to #2 )

Click to email this message

 
only way is u need to store the data as xls
using jxl api
use writable workspace

if u have any problem

i will help u

반응형
Posted by Edward. K
블로그 이미지

메멘토적 기억능력을 소유한 개발자 노트.

by Edward. K

공지사항

    최근...

  • 포스트
  • 댓글
  • 트랙백
  • 더 보기

태그

  • netbeans
  • Eclipse
  • eclipse plugin
  • 가상화폐무료
  • 컴퓨터 관리
  • EditPlus
  • ERwin
  • 전자정부프레임워크
  • 중독성게임
  • 이미지 편집
  • STS
  • tomcat
  • flex
  • sqlgate
  • iBATIS
  • 캡쳐툴
  • 색상코드표
  • Jboss
  • rocketdock
  • EkNote
  • 이클립스
  • 미네르바
  • android
  • Flash Player
  • 사업 이야기
  • 플래시 게임
  • Graphic
  • 개한민국
  • egov
  • toad

글 보관함

«   2026/03   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

링크

카테고리

분류 전체보기 (792)
행운이와함께 (1)
EkNote Project (18)
ARIS (0)
Android (2)
LINK (39)
UML (9)
Programming (154)
Cobol (0)
ASP (0)
CSS (5)
C_C++ (2)
IBatis (2)
JSP (3)
JAVA (76)
JavaScript (44)
PHP (2)
Utility (76)
Protable (3)
MobileProgram (4)
SKT (0)
KTF (0)
LGT (0)
자료들 (4)
DB (82)
mongoDB (0)
MySQL (8)
Oracle (61)
MSSQL (4)
Graphic (8)
Flash (3)
PhotoShop (3)
SourceFactory (4)
Collection (73)
작가의기막힌상상력 (14)
미소를찾아보는공간 (44)
내심장은작동중일까 (6)
멀더와스컬리의노트 (3)
이건어디에사용할까 (6)
Edward (275)
나만 알기엔 아까워 (100)
기억하기 위한 기록 (123)
시선이 머무는 공간 (50)
숨기고 싶은 이야기 (2)

카운터

Total
Today
Yesterday
방명록 : 관리자 : 글쓰기
Edward. K's Blog is powered by daumkakao
Skin info material T Mark3 by 뭐하라
favicon

IT정리노트

메멘토적 기억능력을 소유한 개발자 노트.

  • 태그
  • 링크 추가
  • 방명록

관리자 메뉴

  • 관리자 모드
  • 글쓰기
  • 분류 전체보기 (792)
    • 행운이와함께 (1)
    • EkNote Project (18)
    • ARIS (0)
    • Android (2)
    • LINK (39)
    • UML (9)
    • Programming (154)
      • Cobol (0)
      • ASP (0)
      • CSS (5)
      • C_C++ (2)
      • IBatis (2)
      • JSP (3)
      • JAVA (76)
      • JavaScript (44)
      • PHP (2)
    • Utility (76)
      • Protable (3)
    • MobileProgram (4)
      • SKT (0)
      • KTF (0)
      • LGT (0)
      • 자료들 (4)
    • DB (82)
      • mongoDB (0)
      • MySQL (8)
      • Oracle (61)
      • MSSQL (4)
    • Graphic (8)
      • Flash (3)
      • PhotoShop (3)
    • SourceFactory (4)
    • Collection (73)
      • 작가의기막힌상상력 (14)
      • 미소를찾아보는공간 (44)
      • 내심장은작동중일까 (6)
      • 멀더와스컬리의노트 (3)
      • 이건어디에사용할까 (6)
    • Edward (275)
      • 나만 알기엔 아까워 (100)
      • 기억하기 위한 기록 (123)
      • 시선이 머무는 공간 (50)
      • 숨기고 싶은 이야기 (2)

카테고리

PC화면 보기 티스토리 Daum

티스토리툴바