I'm writing an app that interfaces with a content management system.
I have an event sink that is registered on a public folder. When emails get sent
to the folder the sink fires. I get the mail and do a getstream.save to file and
then check the file into the content management system.. All is well with .EML
The problem occurs when I drag and drop a .PDF file to the folder. The event
sink fires and the storage path points to the .PDF file. The problem is that when
I stream this to a file and try and open the file the file can't be read by Adobe
Reader as there seems to be other information encoded in the file. ADOBE doesn't
recognize it as a PDF file and gives a message stating such (File doesn't being
How can I stream these files or any other like files and get the native format
sans encoded data ?
Thanks in advance.