无法打开 base64 编码的 pdf

Cant open a base 64 encoded pdf

我正在尝试打开网络服务发回给我的 base64 编码 pdf。 这是响应头

Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, PUT, POST, PATCH, DELETE, OPTIONS, HEAD Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Type: application/json;charset=UTF-8
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
RESPONSE BODY
{
"success": true,
"message": "",
"value": "SlZCRVJpMHhMamNLSmJXMX.....
}

我试过在线解码器 http://www.motobit.com/util/base64-decoder-encoder.asp 手动复制粘贴并转换代码。

当我将生成的解码文本保存为 pdf 并使用 adobe reader 打开它时,出现 "not support or damaged file" 错误。 我可能做错了什么,但我在网上四处张望,却找不到任何东西。 Here is the link to txt string of pdf

非常感谢您的帮助。 谢谢你的时间。

您的文件经过两次 base64 编码。要阅读它,您还需要对其进行两次解码。 Web 服务不应该对其进行两次编码。所以,你应该联系他们来解决这个问题。