Home  >  Article  >  Backend Development  >  php如何以json格式传输图片的二进制形式

php如何以json格式传输图片的二进制形式

不言
不言Original
2018-05-17 13:39:423058browse

 二进制phpjson

��JFIF�C $.' ",#(7),01444'9=82<.342�C 2!!22222222222222222222222222222222222222222222222222�<"� ��}!1AQa"q2亼�#B绷R佯$3br� %&'()456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz儎厗噲墛挀敃枟槞殺¥ウЖ┆渤吹斗腹郝媚牌侨墒矣哉肿刭卺忏溴骁栝犟蝮趱鲼�� ��w!1AQaq"2�B憽绷 #3R�br� $4�%�&'()56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz們剠唶垑姃摂晼棙櫄ⅲぅΗī炒刀犯购旅呐魄壬室釉罩棕仝忏溴骁栝牝篝貊鼬�?飊�治{� �$20��卄&滑Eg﹠kh歭臢厣 3� €G濭Nk4��� 瑢zs訵%帥�"i歞黠3�7Z烫蘥,跦#暺镡頹)B-j匷璄+_�歧婞M}燤`抖衍,辌J��);H

这是图片的二进制形式

{"image":{},"session_id":"O:27:\"GuzzleHttp\Cookie\CookieJar\":2:{s:36:\"\u0000GuzzleHttp\Cookie\CookieJar\u0000cookies\";
a:1:{i:0;O:27:\"GuzzleHttp\Cookie\SetCookie\":1:{s:33:\"\u0000GuzzleHttp\Cookie\SetCookie\u0000data\";
a:9:{s:4:\"Name\";s:10:\"JSESSIONID\";
s:5:\"Value\";s:21:\"deaxSSQVARpvY5yOJiqXu\";
s:6:\"Domain\";s:15:\"202.119.113.135\";
s:4:\"Path\";
s:1:\"\/\";s:7:\"Max-Age\";
N;s:7:\"Expires\";
N;s:6:\"Secure\";
b:0;s:7:\"Discard\";
b:0;s:8:\"HttpOnly\";
b:0;}}}s:39:\"\u0000GuzzleHttp\Cookie\CookieJar\u0000strictMode\";
b:0;
}","error_code":0}

可以看到 其中的image是图片的二进制形式 但转成json就没有了 求大神支招怎样以json形式传递图片的二进制形式


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn