This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
//This generates a 23kb file...that doesnt display data in acrobat, 19blank pages BufferedOutputStream bos = new BufferedOutputStream(resp.getOutputStream()); bos.write(bytes,0,bytes.length); bos.flush(); bos.close();
The thing that bugs me is that the files are different when i view them thought wordpad. The one gets send to the browser, the other to my c drive. But as you can see, they are produced with the same byte.