decode base64: invalid input

前端 未结 4 623
执念已碎
执念已碎 2021-02-01 13:37

Trying to decode base64 file on GNU/Linux, I get \"base64: invalid input\".

$ base64 test.zip | base64 -d > test2.zip
base64: invalid input
$ ll test*
-rw-r--         


        
4条回答
  •  自闭症患者
    2021-02-01 14:04

    If you're doing this on a mac, your version of base64 might not have the flexibility to handle ignoring garbage. If you brew install coreutils, you'll have the gbase64 utility and use it as Joe has described.

提交回复
热议问题