我想将图像插入到包含数据类型为 MEDIUMTEXT 的字段的表中。请任何人告诉如何插入mediumtext数据
psmt=con.prepareStatement("INSERT INTO ofvcard (username,vcard) " + "VALUES (?,?)");
psmt.setString(1,"admin");
fis=new FileInputStream(image);
psmt.setBinaryStream(2, (InputStream)fis, (int)(image.length()));
int s = psmt.executeUpdate();