File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Blob formatted in XML
Joined: Nov 21, 2007
Nov 21, 2007 05:21:00
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
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
subject: Blob formatted in XML
XML to String
Retreving PDF File from Database using Java
save a xml file using java
Generic methods doubt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014