hei

I am trying to display a pre-generated PDF file in Cocoon; so I am not using the FOP stuff. I have a Java generator that loads the PDFs from a database and holds it as a byte array (byte[]).

Question is : how do I pass a byte array back to Cocoon from the generator; and how does the sitemap go on further to render it (e.g pdf serializer)?


My other generators work only on XML documents where I use the following to pass data back to cocoon. This obviously does not work on binary data.


      XMLReader xmlreader = XMLReaderFactory.createXMLReader();
      xmlreader.setContentHandler(xmlConsumer);
      InputSource source = new InputSource(new StringReader(message));
       xmlreader.parse(source);


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



Reply via email to