Home » Developer & Programmer » JDeveloper, Java & XML » Uploading File from JSP Application
Uploading File from JSP Application [message #183056] Wed, 19 July 2006 04:51
mac1982
Messages: 4
Registered: July 2006
Junior Member
Hello!

I want to upload a file from a JSP-App which runs on Tomcat 4.1.30 into the DB.

For this reason i want to write a ByteArrayInputStream into the BLOB-Column. It looks something like that.

PreparedStatement pst = con.prepareStatement("insert into files (filename,bytes) values (?,?)");

pst.setString(1,file_name);
pst.setBinaryStream(2,bytestream,length_of_file);

....

But when i execute the code i get the following error:

javax.servlet.ServletException: Io exception: Connection reset.
...

Unfortunately the log-Files don't provide any information on insufficient operations on the database.

Is it possible the oracle-Driver has problems with this task?

regards, mac

Previous Topic: popup login
Next Topic: Urgent Plzzzzzz!!!!!!
Goto Forum:
  


Current Time: Tue Apr 23 20:40:09 CDT 2024