简体   繁体   English

base64_decode问题

[英]base64_decode problem

If i decode base64 encoded bitmap, i get back nothing. 如果我解码base64编码的位图,我什么也得不到。 Where as i should get some binary data. 在哪里我应该得到一些二进制数据。

Suppose $data contains base64 encoded bitmap. 假设$ data包含base64编码的位图。

$decoded = base64_decode($data);

if i echo $decoded it prints nothing even its length is '0'. 如果我回显$ decoded,即使长度为“ 0”,它也不会打印任何内容。 Shouldnt it contain something after decoding? 解码后是否应该包含某些内容?

Also can you decode base64 encoded binary data in php? 您还可以在php中解码base64编码的二进制数据吗?

我做错了,即使api表示加密的数据也没有加密。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM