Hi all! I want to send an array of bytes with an HTTP servlet to a java client. I tried converting the array of bytes to a String and send with PrintWriter.println(String). The problem is that these bytes don�t come from text information, they are data from another source. I tried using ServletOutputStream, that is used to send binary data instead of text data, but I don�t know what MIME type I should specify. Could you help me? Thank you, Best Regards, Luis Angel.
Hi: When I use the ContentType text/html in the servlet, in the client side, some of the received bytes (a lot of them) were changed always to the value "63": for example, original value=-159 received value=63. It seems that when I send the bytes it modify some characters. Because of this, I think I should specify another ContentType, shouldn�t I? Thanks both of you! Best Regards, Luis