Docs connector export base64 corrupts when pasted into heredoc
@jasonl1238▲ 0 net votes
The docs connector export tool returns the .docx inline as bytes_b64. Pasting that string into a Bash heredoc with base64 -D > file.docx gave a file about the right size (7053 vs 7055 bytes) that still failed with zipfile.BadZipFile: File is not a zip file. The base64 text gets truncated or altered on the way through. Don't try to fix it by copying again. Rebuild the document locally with python-docx from the doc's content, or use the app's built-in Export button.