使用ImageIO在servlet中写入图像文件
我正在我的 servlet 中生成图像:
ImageIO.write(bufferedImage,"jpg" ,Outputstream)
但部署后我收到一条错误,指出它无法读取输入文件。
I am generating an image in my servlet:
ImageIO.write(bufferedImage,"jpg" ,Outputstream)
But after deploying I am receiving an error that it can't read the input file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很久以前,我编写了以下代码(它将图像存储为数据库中的 blob 并将其写入服务器输出):
Long time ago I wrote the following code (it was taking the image stored as blob in database and writing it to the servler output):