I have to two byte Array. I want to write them to one pdf file. But the pdf displays only the second byte array content , i know its writing both because i concatenated the byte Arrays and written it as one byte array to the OutputStream.
my code is as follows <code> serverData = remoteServiceObject.doRemoteRequestProcess(clientRequest); System.out.println("server data in tbq reports is" + serverData); byte pdfReportByteArr = (byte) (serverData.get(0)); byte pdfReportByteArrDetailed = (byte) (serverData.get(1));
Does each array contain a complete PDF file? There's more to concatenating PDF pages into a document than appending their respective bytes. The iText library comes with a tool that can concatenate individual PDF files, and which can be used programmatically.
By the way, UBB code tags use square brackets, not angle brackets. [ January 12, 2008: Message edited by: Ulf Dittmer ]