Unable to download the Docx from Applciation Server
JBOSS and OS is CentOS and DB is Oracle
String primary_key = Lib.getSingleResult("SELECT upload_ticket_seq.nextval FROM DUAL", "", con);
pstmt = con.prepareStatement(sInsert);
pstmt.setString(1, master_key);
pstmt.setString(2, primary_key);
pstmt.setString(3, file_name);
pstmt.executeUpdate();
pstmt.close();
// select the row to update the BLOB column
pstmt = con.prepareStatement(sSelect);
pstmt.setString(1, primary_key);
rset = pstmt.executeQuery();
if (rset.next()) {
blob = ((OracleResultSet) rset).getBLOB(1);
} else {
status = "Error when extracting BLOB";
}
blob.trim(0);
out = blob.getBinaryOutputStream();
out.flush();
out.write(dataBytes, startPos, (endPos - startPos));
out.close();
Saving the Document(Docx) as BLOB Object into Database. downloading the docx properly, when Client and Server Machine is Windows XP/Windows 7 and ie7 /ie8. This is not working when Server is CentOS