如何对图像进行编码?
I was reading this blog http://alexrogan.com the writer talks about adding an encoded image to a web page. His explanation was easy enough to understand, however he did not explain how to encode the image in the first place.
So, I would like to know how do I encoding an image?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个 php 示例:
base64 就是 base64,无论您使用什么操作系统。
Here's a php sample:
base64 is base64, no matter what OS you're on.
为此,您需要一个 Base64 编码器。尝试例如 http://www.motobit.com/util/base64-decoder-编码器.asp。将您的图像上传到网站,系统会生成一个 Base64 表示形式,供您剪切并粘贴到 HTML 中。
You need a base64 encoder for that. Try for example http://www.motobit.com/util/base64-decoder-encoder.asp. Upload your image to the site and a base64 representation will be generated for you to cut-and-paste into your HTML.