what's the Bootstrap when I use "stream" result type for a picture output

2015-09-23 Thread Mike Guo
Hi. all. I got a very strange issues. I tried to generate dynamic check code by struts2. so, I used buffered image and javax.imageio for a byteinputstream in my Action. look like the function work fine. but strange thing is: every time when I access that dynamic check code action. system

Re: what's the Bootstrap when I use "stream" result type for a picture output

2015-09-23 Thread Mike Guo
Anyone? Please. 发自我的 iPhone > 在 2015年9月24日,02:15,Mike Guo 写道: > > Hi. all. > > I got a very strange issues. > > I tried to generate dynamic check code by struts2. so, I used buffered image > and javax.imageio for a byteinputstream in my Action. > > look like the

Re: what's the Bootstrap when I use "stream" result type for a picture output

2015-09-23 Thread Mike Guo
ok, I just found it is not related with tomcat or struts. I just use this code: import java.util.Arrays; import javax.imageio.ImageIO; public class ListImageFormatters { public static void main(String[] args) { String[] readerFormatNames = ImageIO.getReaderFormatNames();

Re: what's the Bootstrap when I use "stream" result type for a picture output

2015-09-23 Thread Mike Guo
ok, finally, I got the solution for this one. although I don’t know why. I just add one java param in here: java -Djava.awt.headless=true then it will be gone. thanks Mike.G > 在 2015年9月24日,12:02,Mike Guo 写道: > > ok, I just found it is not related with tomcat or

Re: what's the Bootstrap when I use "stream" result type for a picture output

2015-09-23 Thread Mike Guo
and I think the finally answer is here: http://www.oracle.com/technetwork/articles/javase/headless-136834.html just for record. Mike.G > 在 2015年9月24日,12:05,Mike Guo 写道: > > ok, finally, I got the