You don't want to call toString() on the Byte Array you want to call it on the
ByteArrayOutputStream. Try this instead:
String pageContent; //string pagecontent contains the html content
StringBufferInputStream sbis=new StringBufferInputStream(pageContent);
ByteArrayOutputStream baos=n
Hi all
I have the url content in a string.That means string contains html code.I want to pass it to w3c tidy ,perform clean and
stored it in a byte array.I tried with following code
snippet.But it showing error message and output some
junk data. Instead of byte array I tried with FileO