[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
File Download DefaultBufferedContent  XML
Forum Index -> Development
Author Message
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Hi Captain,

Is it possible to output content of DefaultBufferedContent to an excel file ???

Or How to output the content to excel file via DefaultBufferedContent?


I am using Apache Poi


Regards,
Vincent
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Well, the default buffered content creates some byte[]-Array and some content type (is the mime type for excel "application/msexcel"? Am not 100% sure, please check). And you may pass a file name as well (method: passClientFileName()). So if it is word or excel or whatever - does not matter!

So, yes, create your byte[] with Apache POI on server side and make it available as buffered content.

Regards, Björn


btw: when using content type "application/octet" then browsers will always download the document (and not try to open it via plugins)

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team