Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将我从zxing的qrcode函数得到的byteMatrix数据转换为byte[],然后在servlet中将这些数据发送到html页面进行图像显示。
我在 java1.3 中运行这个应用程序,它不支持 bufferedImage 类。
我在网上搜索了将近 4~5 天,仍然找不到任何东西。
所以我想知道是否可以在不使用 bufferedImage 的情况下实现这一点?
非常感谢您的帮助。
艾米
你为什么不想使用BufferedImage?它当然在 Java 1.3 环境中可用。
BufferedImage
你是什么意思-以某种格式byte[]表示图像的字节?设置响应内容类型后,用于ImageIO将其写入BufferedImageservlet 输出流等流。
byte[]
ImageIO