This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 ]