I am trying to make a method that converts an array of characters (content
) into a BLOB, and updates the database system accordingly. This is my code so far:
public void setFileContent(String fileName, char[] content) {
// BLOB b = char[] content
String sql = "UPDATE tbl_blob SET file_content=??? WHERE file_name=\"" + fileName + "\"";
}
What do I have to do in order to convert an array of characters into a BLOB?
Many thanks.