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: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to