on 2005 Oct 05 10:59 AM
Hi all,
we need read a pdf via the path (not url). Therefore we open the pdf on the server with "FileInputStream" to a and fill a byte-array.
If we write this array with "FileOutputStream" everything went fine. We can read the generated output with AcrobatReader.
But if we try to send the ByteArray to a client with a "HttpServletResponse.getOutputStream" the automatically starting AcrobatReader tells us, that out file ist corrupt.
Every suggestion ist welcome, thanks
Hi,
have you set the content type of the httpservletresponse correctly...before writing the binary data to the stream....
Thanks & Regards,
Renjith.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Couldn't you use a FileDownload UI element instead?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.