【在 s******i 的大作中提到】 : dear all : : How to insert image in a table of DB2 ? : please tall me,thank you !!
f*h
3 楼
An example in Java: Suppose you have a table (id varchar, image blob) public static void loadImage(Connection con, String fileName, String tableName, String idValue){ File imageFile; try{ imageFile = new File(fileName); } catch (Exception e) { System.out.println("File not found!"); return; } String queryString = "INSERT INTO "+tableName+" VALUES(?,?)";