Converting the bytes recieved from the web-server into string...
I have developed a web-proxy server which brings in the web-pages and the web-
objects from the remote server in a ByteArrayStream which is then sent to the
browser after the ByteArrayStream is converted into a byte. I have to
filter the response on it's way back to the browser, so i need to convert the
byte array into string in order to parse and filter it through the string
functions. When i convert the byte array into string or a character array the
output that i get is garbage when i print the output onto the console.
How do i convert the byte array into a string so that i can search the
response string for a particular string which i have to filter.
I am stuck in this phase and I have to develop it further. Kindly reply soon
so that i can develop it further....