H
Hans Rytter
Hi.
My java servlet generates a pdf file at returns it to the browser, but on
some clients browser it doesn't show (the pdf). It's the same version of
browser, same service packs, same updates etc, on the clients. It's always
the same clients it's show / not shown.
Anybody got any suggestion for what can be wrong.
Here's a sniplet of my servlet:
......
ByteArrayOutputStream bos = TransformHandler.doPDFTransform(myDocument,
myXslFile);
sessionObj.getHttpResponse().setContentType(MyConsts.PDF_CONTENT_TYPE);
sessionObj.getHttpResponse().setContentLength(bos.size());
OutputStream os = sessionObj.getHttpResponse().getOutputStream();
bos.writeTo(os);
os.flush();
os.close();
.....
/Hans.
My java servlet generates a pdf file at returns it to the browser, but on
some clients browser it doesn't show (the pdf). It's the same version of
browser, same service packs, same updates etc, on the clients. It's always
the same clients it's show / not shown.
Anybody got any suggestion for what can be wrong.
Here's a sniplet of my servlet:
......
ByteArrayOutputStream bos = TransformHandler.doPDFTransform(myDocument,
myXslFile);
sessionObj.getHttpResponse().setContentType(MyConsts.PDF_CONTENT_TYPE);
sessionObj.getHttpResponse().setContentLength(bos.size());
OutputStream os = sessionObj.getHttpResponse().getOutputStream();
bos.writeTo(os);
os.flush();
os.close();
.....
/Hans.