setBinaryStream (2) 썸네일형 리스트형 Getting AbstractMethodError when calling setBinaryStream Depending on your jdbc driver version the following code can fail to run.view sourceprint?1.File file = new File("image.jpg");2.InputStream in = new FileInputStream(file);3.preparedStatment.setBinaryStream(1, in, file.length());The error you will see is as follows.java.lang.AbstractMethodError: com.mysql.jdbc.ServerPreparedStatement.setBinaryStream(ILjava/io/InputStream;J)VTo fix this problem yo.. 이미지 파일을 DB에 넣기 프로젝트에서 이미지 파일을 db에 넣을 일이 생겨서 한참을 찾았넹.ㅋ 하고나니 어렵지 않은데,,,, 네이버에는 검색안되고... 구글에서 겨우 찾았다. oracle은 많은데 MS-SQL은 별로 없다. 우리나라는 넘 오라클을 좋아해...ㅋㅋㅋㅋ그리고 구현되어 있는 방법도 모두 동일..... 다양성이 너무 부족해.. Language : JAVA Database : MS-SQL TableName : GMSPHOTOM FieldName(DataType) : PHOTO(image), THUMNAIL(image) ... Connection conn = null; PreparedStatement pstmt = null; StringBuffer sql = null; int result = 0; try { File pho.. 이전 1 다음