[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Re: How to output raw byte array in JSP?
> I've got a raw byte array in my JSP page (the bytes are mail attachment data
> and can be text, image, audio, whatever)
> I have set the correct content type through response.setContentType( ) in my
> JSP page.
> Then, how can I output these bytes in GNUJSP?
> out.print( ) or out.write( ) is not OK as "out" is a PrintWriter that does
> not support outputting raw bytes.
> Any tricks?
It makes little sense to use JSP for that, use servlets.