Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.
Pankaj_Jain
stranger
Reged: 08/14/07
Posts: 1
|
|
Dear All,
I am not able to get a report in PDF format on JetSpeed Portal. Its not throughing any error in log or on console. Code is running successfully and giving out of report all in ascii characters.
My complete data is comming in "byteArrayStream" object. The "request" is HttpServletRequest.
The Following Code, I have written for the same....
ByteArrayOutputStream byteArrayStream = (ByteArrayOutputStream)PDFDataArray.get(2); response.reset(); RenderResponse rRes = (RenderResponse) request.getAttribute("javax.portlet.response"); rRes.setContentType("application/pdf"); rRes.getPortletOutputStream().write(byteArrayStream.toByteArray()); byteArrayStream.close();
Please help me out.
Thanks Pankaj Jain
|
|
0 registered and 1 anonymous users are browsing this forum.
Moderator:
Print Topic
|
Forum Permissions
You cannot start new topics
You cannot reply to topics
HTML is disabled
UBBCode is enabled
|
Rating:
Topic views: 3154
|
|
|
|
|
|
Powered by UBB.threads™ 6.5.5