Download instead of display

21 views
Skip to first unread message

Michael Knigge

unread,
Mar 17, 2014, 3:52:39 PM3/17/14
to jminix...@googlegroups.com
Hi,

JMinix supports HTML-Rendering if an attribute returns a special class. I wonder if it would be hard to enhance JMiniX i a way that a download is automnatically started if an attribute (or operation!) retrurns a special class, i. e. an InputStream?!? JMiniX could initiate a download and sent all data from the InputStream to the client (Web-Browser). Any chance to get something like that implemented soon?

Thank you!

Bye,
Michael

lbovet

unread,
Mar 18, 2014, 3:54:07 PM3/18/14
to jminix...@googlegroups.com
This one is more tricky to implement, because it needs metadata like the mime/type to make the download work properly. This could be implemented with a class similar to HtmlContent, e.g. ByteStreamContent.
As it would covers a specific need and goes away from the JMX standard, it is not something that would come as a priority. But, again, feel free to try and submit a PR, I will surely merge it.

Michael Knigge

unread,
Mar 20, 2014, 4:24:02 AM3/20/14
to jminix...@googlegroups.com
 I'm not familar with any of the framewoks that you use - but yesterday I've thown an eye on JMiniX source and it seems not that hard.

I guess next week you'll get a pull request from me....


Bye,
Michael

Reply all
Reply to author
Forward
0 new messages