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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -