[EMAIL PROTECTED] wrote:
also, i made document object and i transformed it in String

String output = serializer.outputString();

and now i wrote

response.setContentLength(output.length());
result of transformation is

WriteBeyondContentLengthException

i persume that croatian letters are in unicode and because of that they need
more bytes. how to solve it?

Perhaps byte output[]=serializer.toString().getBytes() response.setContentLength(output.length); although I don't understand where the serializer comes from and why you think you'll have to stringify it. PDF is binary, and you should use a ByteArrayOutputStream as shown in the sample servlet.

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to