Writer try to flush buffer...
On 2/15/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:
that should work i think (need to test this)
But why don't you use a ResourceLink with a ByteArrayResource as the resource in its constructor?
johanOn 2/15/06, Ingram Chen <[EMAIL PROTECTED]> wrote:Dear all,
I would like to download iText pdf document via Link component:
new Link("download") {
public void onClick() {
WebResponse response = (WebResponse) getResponse();
response.setHeader(....);
response.setContentType(....);
OutputStream outputStream = response.getOutputStream();
outputStream.write(myDataBytes);
outputStream.flush();
}
}
But this does not work. I search wiki but there is no information how to do
this. Could someone give me some suggestions ?
--
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen
--
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen