Skip to Content
0
Former Member
Oct 05, 2005 at 09:59 AM

Read a pdf via path in WebDynpro

27 Views

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