I'm using the following snippet to read a file contents (data.txt) and stream out through ServletOutputStream.
However, when the file is encrypted, I would like to decrypt it, and then stream it out via ServletOutputStream. I call an encryption program that decrypts the file (dataenc.txt) and returns the data as a byte array. How do I use this byte array with ServletOutputStream ?
I tried using the below code, but nothing is returned.
Can anybody tell me what's wrong in the code ? thanks. Sara [ August 09, 2006: Message edited by: Sara James ]