perl - Decoding Error by Base64 Usage -
i have troubles decoding encoded file base64.
i use command encode xml file within script:
base64 $file_path | perl -pe 's/\n/\\n/g' and works fine.
but when try decode command:
base64 -d "encodedfile" > "decodedfile" i error. decodes till specific point , interrupt decoding process. seems have illegal character in encoded file cant't explain why.
have of idea?
greetings
if doing funky stuff base64 after encoding, should reverse funky stuff before decoding:
perl -pe 's/\\n/\n/g' "encodedfile" | base64 -d
Comments
Post a Comment