I have a batch of .CGM files and it needs to be base64 encoded and get the content inside it as a String. I have no idea what the input file content type is, so I will upload a snapshot of a small piece of the input file content for reference. CgmFileSample . Please help me in coming up with a code for this!
Asked
Active
Viewed 24 times
0
-
It's simply binary data and actually, for Base64 encoding it doesn't matter what the data represents, the encoder just reads binary data and encodes it to a Base64 string. – jps Sep 08 '22 at 09:19
-
1Yes you were right it's just binary data and reads as binary data, thanks! – Sanath Sep 08 '22 at 12:59