• 您的位置我爱Aspx >> VC.Net >> 如何通过struts以oci协议将文件上传到oracle数据库的blob字段
  • 如何通过struts以oci协议将文件上传到oracle数据库的blob字段

  • 作者:aspxer  来源:internet  日期:2007-5-21 23:49:26  关键字:数据库,数据
  • }

    catch (FileNotFoundException fnfe) {

    fnfe.printStackTrace() ;

    return mapping.findForward("error");

    }

    catch (IOException ioe) {

    ioe.printStackTrace() ;

    return mapping.findForward("error");;

    }

    catch(SQLException ex){

    ex.printStackTrace() ;

    return mapping.findForward("error");;

    }finally{

    if(conn != null){

    try{

    stmt.close();

    conn.close() ;

    }catch(Exception sqle){

    sqle.printStackTrace() ;

    }

    }

    }

    request.setAttribute("union_Id",union_Id) ;

    request.setAttribute("union_Version",union_Version) ;

    System.out.println("-------------File Upload Ends-------------------") ;

    return mapping.findForward("success");

    }else{

    return null;

    }

    }

    }

    附:dbPool.java程序

    我对这篇文章有话说?
  • 广告位招租,广告代号:content_468_15
  • 上一篇:mfc版本及其对应vc版本一览表
    下一篇:Win32学习笔记 第二章