this does not seem to work if i click the "view" button when viewing the details about
a file stored in the database.
also, it seems that pulling images out of the database is now broken w/ these changes.
from what i can tell, it is b/c the ByteArrayOutputStream in the "Blah" class is set
to null.
if i initalize that variable when calling getOutputStream and i build the
ServletOutputStreamWrapper w/ that, everything seems to work, but i'm not sure if what
i'm doing is ultimately correct.
here's the snippet for getOutputStream from the Blah class.
| public ServletOutputStream getOutputStream() throws IOException
| {
| if (wrappedWriter != null)
| {
| throw new IllegalStateException();
| }
| if (wrappedStream == null)
| {
| OutputStream out = null;
| if (contentType == null || exclude.contains(contentType))
| {
| // That means we copy the stream directly to the output
| ServletResponse response = getResponse();
| response.setContentType(contentType);
| response.setBufferSize(Tools.DEFAULT_BUFFER_SIZE);
| out = response.getOutputStream();
| }
| else
| {
| // We bufferize for compression
| baos = new ByteArrayOutputStream();
| }
|
| if (out == null)
| {
| wrappedStream = new ServletOutputStreamWrapper(baos);
| }
| else
| {
| wrappedStream = new ServletOutputStreamWrapper(out);
| }
| }
| return wrappedStream;
| }
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840071#3840071
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840071
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development