怎么用JSON来传输图片

WBOY
Release: 2016-06-23 13:21:02
Original
2076 people have browsed it

如果不传输地址直接是图片
怎么把一副 GIF89 的图片通过 json_encode() 传输 
因为我是觉得与其传输地址再访问传输图片为什么不直接图片发送 但是我看到很多API都是图片地址
一直比较好奇 现在正好自己做到项目了所以问一下 谢谢大神回答


回复讨论(解决方案)

base64 encode

Thank u

楼主最后怎么解决的?!我现在也遇到这个问题了。必须对图片的字节码Base64 Encode才能用Json传输么???直接传送图片是不可行的?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template