简体   繁体   English

JSF:如何在页面上显示BufferedImage?

[英]JSF: How to display BufferedImage on page?

I need to display a BufferedImage object on page. 我需要在页面上显示BufferedImage对象。 How to do that ? 怎么做 ? I'm thinking about saving temporary file in WEB-INF and get that image as resource. 我正在考虑将临时文件保存在WEB-INF中并将该图像作为资源。 Is this a right way ? 这是正确的方法吗?

What kind of library are you using? 您正在使用哪种图书馆? If you use Richfaces , you can use the <a4j:mediaOutput> component for this kind of things, without generating any external files... 如果使用Richfaces ,则可以将<a4j:mediaOutput>组件用于此类操作,而无需生成任何外部文件...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM