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!