Hi all,
I'm receiving lab results splitted in many segments that contain a file in PDF format coded in base64 . At this point I can concatenate all pieces generating the entire coded message. After that I apply decode function and write the product of this decoding into a file named result.pdf. I don't know why but the file is incorrectly decoded and becomes very small and illegible (really doesn't have PDF format).
Decoding manually the original file, I obtained a perfect PDF file. I know that I'm missing something, but I don't know what!.
Any hints?,
Ricard Bernat
I'm receiving lab results splitted in many segments that contain a file in PDF format coded in base64 . At this point I can concatenate all pieces generating the entire coded message. After that I apply decode function and write the product of this decoding into a file named result.pdf. I don't know why but the file is incorrectly decoded and becomes very small and illegible (really doesn't have PDF format).
Decoding manually the original file, I obtained a perfect PDF file. I know that I'm missing something, but I don't know what!.
Any hints?,
Ricard Bernat
Comment