Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
JDBC and Relational Databases
Blob formatted in XML
posted 8 years ago
i wrote a code which gets the blob object from the database and using the bufferedinputstream i read the blob as bytestream.
Blob b = rs.getBlob("TCblob");
XmlString = "";
bis = new
byte bt = new byte;
XmlString = "<Request><row>" + bt+ "</row></Request>";
In the method processXMl
NodeList ls1 = doc.getElementsByTagName("row");
String b = ls1.item(0).getFirstChild().getNodeValue();
byte  bt = b.getBytes();
problem here is i found both byte arrays are different by printing on the console. So how to get the same data throught parsing the XML??
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
save a xml file using java
XML to String
Retreving PDF File from Database using Java
Generic methods doubt