So I am using a java SQL api to insert some BLOB data into a table. However, Since the SQL apparently doesn't know that I just want the string to end, it just pads it with zeros. So I have 10 charachters of data followed by a gazillion zeros at the end. How should I solve this problem, and is all hope lost?
public void storeInTable(String data) throws SQLException{
statement.executeUpdate("INSERT INTO put.data VALUES ('" + data + "', NOW())");
}