[SOLVED] Converting output stream to string
I want to convert an output stream into something that I can display. I put together the following code, but it only display incoherent text.
1. I do not have a preference for the output stream type. I just want to display the converted string in the console viewer, i.e. "System.out.println()"
2. request.writeRequest(outStream); - writes to output stream
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
MultipartRequestEntity request = new MultipartRequestEntity( parts, post.getParams() );
System.out.println( outStream.toString() );