Hello,

I guess you can create a Java string with String(byteArray, java.nio.charset.Charset.forName("ISO-8859-1")) and write that string. With this character set, all byte values are mapped to some characters.

Don't forget to set the mime type.

2011/3/29 Vasil Vangelovski <vvangelovski@gmail.com>
Hi

I'm working on a django project on Jython. I have the following problem.
I'm using jasper reports to generate a PDF report.

I write the PDF stream to a     java.io.ByteArrayOutputStream() . My
question is How do I write this output to the django HttpResponse
object. Converting the output stream to
byte array and then string then writing the string to the response won't
work.

Thanks


------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users



--


A+

-------------
Pierre
My blog and profile (http://pierrethibault.posterous.com)
YouTube page (http://www.youtube.com/user/tubetib)
Twitter (http://twitter.com/pierreth2)