Retreiving Blob (more than 200 pages in Word)

I am using aspose.java words., I want to read a blob of data from oracle database table into the word.
java code:public DataTable getImage() throws Exception{
String curDateSql=" SELECT file_content as PhotoBLOB FROM p_file_content WHERE file_id='8a2b816842dbef400142dc09770a0010' ";
ResultSet rs = executeQuery(curDateSql);
InputStream is = null;
ResultSet rsTemp = null;
byte[] b = null;
if(rs.next()){
oracle.sql.BLOB osc=(oracle.sql.BLOB)rs.getBlob("PhotoBLOB");
rsTemp = ResultSetUtil.createCachedRowSetByte(new String[]{"PhotoBLOB"});
ResultSetUtil.addByteRow(rsTemp, osc.getBytes());
}
if(rsTemp==null){
rsTemp = rs;
}

return new DataTable(rsTemp);
}
word: «TableStart: p_file_content»
«Image: PhotoBLOB»
«TableEnd: p_file_content»

But the picture does not print out. Ask why

Hi Hou,


Thanks for your inquiry. Please refer to the following article to be able to insert images from database:
http://www.aspose.com/docs/display/wordsjava/How+to++Insert+Images+from+a+Database

Best regards,