by jbader » Wed Apr 07, 2010 1:09 pm
Hi Paul thanks for the reply. I understand the difference between write txt file and write file API, but I think you are missing my point. Say for example I want to write a csv file to client via webclient and writetxtfile. Csv is a text format and not binary. The trouble is though that writetxtfile always pushes a text plain mime type and auto appends .txt to everything! Couldn't that be changed so that we could specify a diffferent mime type that corresponded to the appropriate file type we are creating? This way I can call writetxtfile with an extension and a mime type and the browser will push the appropriate header corresponding to the file type.
I am bringing this up because right now it seems as though combining writetxtfile with jasper plugins runreport and specifying csv - to download a csv report to the client in Webclient - can't work.