使用Java实现在SQLserver中实现图片的存储
使用Java实现在SQLserver中实现图片的存储Connection conn = null; try{ DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver()); conn=DriverManager.getConnection("jdbc:microsoft:sqlserver://IP:1433;DataBaseName=Moftec","sa","mymm"); } catch(Exception e ) { //捕捉异常并抛出IOException out.println("Can not connec to the database! The exception is " + e.toString()); } FileInputStream fis=null; File file = new File("E:/java/chart.jpg&