|
|
Re: Read data from excel and store it in blob [message #470662 is a reply to message #470657] |
Tue, 10 August 2010 07:05 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
akilaa
Messages: 7 Registered: August 2010 Location: Chennai
|
Junior Member |
|
|
Am using
l_attached_file BLOB ;
..
DBMS_LOB.createtemporary(l_attached_file, TRUE);
DBMS_LOB.open(l_attached_file,Lob_Readwrite);
file_handle := CLIENT_TEXT_IO.FOPEN(file_path,'R');
loop
CLIENT_TEXT_IO.GET_LINE(file_handle,newline);
DBMS_LOB.writeappend(l_attached_file,length(newline),UTL_RAW.CAST_TO_RAW(newline));
end loop;
i ll pass l_attached_file in my mail ,xls file is attaching but with unrecogonised content.
this code is working for reading txt file , but its not working for .xls and .doc .
Please provide the suggestions for reading xls files.
|
|
|
|
|
|
|
|
|