只需base64_decode()数据:
$blob = base64_decode($json_64_encoded_string);
Run Code Online (Sandbox Code Playgroud)
然后将其写入DB.如果您需要帮助从POST数组中获取编码的字符串,请查看PHP json_decode函数:http://php.net/manual/en/function.json-decode.php
$json_obj = json_decode($_POST[post_key]); //replace 'post_key' with whatever you use
$blob = base64_decode($json_obj->blob); //replace 'blob' with whatever you use
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3253 次 |
| 最近记录: |