I have a blob object which I am trying to convert to String or XML format. I am not able to properly serialize it as I don't know the format. How can I convert this blob?
Blob blob = rs.getBlob(4);
StringBuffer strOut = new StringBuffer();
String aux = null;
BufferedReader br = new BufferedReader(new Inputblob.getBinaryStream()));
try {
while ((aux = br.readLine()) != null) {
strOut.append(aux);
}
}
catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println(aux);
The output comes in some strange character format:
