This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I want to display the blob contents in the clients window and give him the option either to open or save the contents. I am able to read the contents from Oracle Blob Field and stored the contents in the ByteArrayOutputStream object but I am not able to open the contents for the client. I am using the following code Blob blob = resultSet.getBlob(1); int length = (int)blob.length(); byte  b = blob.getBytes(1, length ); ByteArrayOutputStream baos = new ByteArrayOutputStream(); baos.write(b,0,length); response.setHeader("Content-Disposition","attachment; filename="+baos ); Please help me