如何将字节数组转换为Image [英] How to convert bytes array to Image

查看:107
本文介绍了如何将字节数组转换为Image的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,



我想用HTML显示图像。

所以,请帮我把字节数组转换成图像存储特定图像。

并以img标签显示。



提前致谢..

Hello Everyone,

I want to display a image in HTML.
So, Please help me to convert bytes array into image that store in particular image.
and display in img tag.

Thanks in advance..

推荐答案

假设bytes数组不是标准图像。

我会在JS中编写一个解码器,将像素发送到CANVAS。



任何依赖于bytes数组的内容。
Assuming the bytes array is not already a standard image.
I would write a decoder in JS that send pixels to a CANVAS.

Anything depend on what is the bytes array.


这篇关于如何将字节数组转换为Image的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆