I have a huge string of text that is apparently raw data for a PDF file, and I need to make it back into a PDF.
Currently I\'m reading the string into a StringBuffer but
Okay, well after a lot of research I found out that to preserve the binary data in the string that typically you convert it to Base64 encoding. On a complete guess I decoded the string out of Base64 and dropped the bytes into the pdf file, and lo and behold I had a pdf that could be opened!
Thanks for the answers and I hope this helps someone in the future!