Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 959562

Pages: 1
Pankaj_Jain
stranger


Reged: 08/14/07
Posts: 1
PDF Report in JetSpeed Portal
      #51780 - 08/14/07 02:56 AM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
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

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5