I am trying to insert text,images,audio and video files into an oracle 9i database.The oracle driver used is also supported so no problems with that.It easily uploads files upto 5KB. If my file exceeds 5 kb its giving me this oracle error.
unimplemented or unreasonable conversion requested!
I am not understanding why this is happening Because of this i am unable to fulfill my requirements of storing multimedia files with a larger size. its showing me the oracle error in this line :
int row = pmt.executeUpdate();
here is my code :
pmt = con
.prepareStatement("insert into image_mode_idea(data_id,idea_id,file_name,file_format,file_data) values(?,?,?,?,?)");
pmt.setInt(1, data_id);
pmt.setInt(2, idea_id);
pmt.setString(3, fileName);
pmt.setString(4, fileFormat);
out.println("whatsup"+inputStream);
if (inputStream != null) {
out.println("Before Set the Input Stream: " + inputStream);
System.out.println(pmt);
pmt.setBinaryStream(5, inputStream, inputStream.available());
System.out.println(pmt);
out.println("Set the Input Stream: " + inputStream);
} else {
out.println("Input Stream Null");
}
System.out.println(pmt);
int row = pmt.executeUpdate();
Any kind of help is appreciated at the earliest.