Home > Backend Development > PHP Tutorial > 图像怎么以数据流的方式传输到客户端

图像怎么以数据流的方式传输到客户端

WBOY
Release: 2016-06-13 12:13:49
Original
996 people have browsed it

图像如何以数据流的方式传输到客户端
安卓客户端请求服务端生成一个图片的验证码传输过去  如果是生成图片以文件的方式保存 那就会生成很多的验证码图片,请教一下大家  如果在不占用存储空间的情况下 把验证码以图片的形式  传输到安卓客户端  
------解决思路----------------------

ob_start();<br />imagepng($im);<br />$s = ob_get_clean();<br />
Copy after login
就存到变量里了

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