Commit 42b4b689 authored by Quxl's avatar Quxl

x

parent caa3ad82
......@@ -17,7 +17,6 @@ import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Base64;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
......@@ -178,7 +177,7 @@ public class DBPort {
String columnType = (String) columnMap.get("type");
Object columnValue = columnMap.get("value");
if(columnType.startsWith("image") || columnType.startsWith("blob")) {
columnValue = new ByteArrayInputStream(Base64.getDecoder().decode((String)columnValue));
columnValue = new ByteArrayInputStream((byte[])columnValue);
}
ps.setObject(index, columnValue);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment