Hi
I am working on upload a document by using JSPSmartupload api . to upload
the document into Oracle database.. I am using oracle thin drivers.
Any one worked in this problem please help me, I will thankful to u.
Thanks,
Malla REddy
Here is the code..
ResultSet rs = stmt.executeQuery("SELECT T.* FROM MP1.TBL_UPLOAD T where
FILE_NAME = 'MALLA'");
// if the resultset is not null
if (rs.next()){
// Initialization
mySmartUpload.initialize(pageContext);
// Upload
mySmartUpload.upload();
// upload file in the DB if this file is not missing
if (!mySmartUpload.getFiles().getFile(0).isMissing()){
try {
rs.updateString("FILE_NAME",
mySmartUpload.getFiles().getFile(0).getFileName());
// Add the current file in the DB field
// Here I am getting error java.sql.SQLException: Internal Error:
//Unable to construct a Datum from the spec
mySmartUpload.getFiles().getFile(0).fileToField(rs,"ATTACHMENT");
System.out.println("I am before update Row()");
I am unable to see the out put..
// Update
rs.updateRow();
count++;
} catch(Exception e) {
out.println("An error occurs : " + e.toString());
}
}
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html