I am having the worst time figuring this out and I haven't found a solution close to what I need anywhere online.
We are using
EJB, 11g and ADF to create a system where the user can download an xml file and all images pertaining to the xml file in one, clean zip package by clicking a button/link. The download must appear as a standard "Open, Save, Cancel" user prompt ( CUSTOMERS REQUEST)
I created the xml, I can pull the images from the SQL DB and I believe they are being input into my instance of ZipOutputStream, but the problem is returning the ZipOutputStream. The system plays friendly returning ByteArrayOutputStream pdfs, docs and images so I wanted to return the zip file the same way.
With our faces-config.xml, I cannot return values exactly how I need to. I have to go through response and context.
Below is where the files are pulled and stored in the ZipOutputStream...
And this is where it is returned as a request...
Note where the bytearray needs to be. Is this possible?