It seems that the OutputStream (BufferedOutputStream to be specific) provided by the getAgentOutputStream method is filtering data. When trying to output a JPEG image, I get 4 or 5 characters and that’s it. If you look at the data as character data, it gets to the point where the characters are reporesented as square blocks and stops there. It’s almost like it is giving up if it sees a character code that is not in some defafault character set.
I know the image data is fine because I can send it to a FileOutputStream and open the file and view the image.
Thanks,
Rich