On Monday, April 20, 2015 at 12:52:36 AM UTC-7, PMario wrote:
>
> So there may be a possibility in the TW core, that allows you to create a 
> buttion that says: "Download and save this tiddler as a .zip file" 
>

Here's an ugly little trick that works today:

First, drag-and-drop a binary file (e.g., myfile.zip) into TW to create a 
base64-encoded tiddler with the file content.  Then, put the following 
macro into a tiddler:
   <<datauri "myfile.zip">>

This will display as a very ugly "external" link of the form:
   data:application/zip;base64,...encoded data here...

Click the link to open another tab.  The browser will automatically trigger 
it's built-in download handler, allowing you to save the decoded binary 
file locally.  Once it is saved to your filesystem, you can open the .zip 
file in the normal manner to access it's contents.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/19af55ff-002a-49fa-be34-d258d5ad2f5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to