Re: [tw] Re: Embed a ZIP for download?

2015-02-23 Thread Jeremy Ruston
Hi Andreas Wouldn't it be possible to handle all unkown MIME types as binary data ? That would ensure that people could for example embed word or excel files or a bunch of other file types (at the expense of some txt/ascii based formats). I am not sure if that is a good idea, or if that is

Re: [tw] Re: Embed a ZIP for download?

2015-02-23 Thread Jeremy Ruston
Hi Stephan Just to be clear, TW5 does indeed support binary tiddlers (images being a good example). You can drag a ZIP file into TW and the right thing happens. The limitation at the moment is that there's no built-in way to download the file afterwards. You can use something like the following

Re: [tw] Re: Embed a ZIP for download?

2015-02-23 Thread PMario
On Monday, February 23, 2015 at 10:01:21 AM UTC+1, Stephan Hradek wrote: Thanks Andreas - So Mario is right with his hint that I need to convert to base 64. Ouch! Any doubt about this? :)) -m -- You received this message because you are subscribed to the Google Groups TiddlyWiki group.

Re: [tw] Re: Embed a ZIP for download?

2015-02-23 Thread PMario
On Monday, February 23, 2015 at 12:15:14 PM UTC+1, Andreas Hahn wrote: Wouldn't it be possible to handle all unkown MIME types as binary data ? I think, this would be a good idea, if users wouldn't use it in the wrong way, which will cause support on our side. That would ensure that

Re: [tw] Re: Embed a ZIP for download?

2015-02-23 Thread Stephan Hradek
Thanks Andreas - So Mario is right with his hint that I need to convert to base 64. -- 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

Re: [tw] Re: Embed a ZIP for download?

2015-02-23 Thread Stephan Hradek
Am Montag, 23. Februar 2015 10:06:00 UTC+1 schrieb Andreas Hahn: Yes, it is unfortunately it is the only way to do it, without editing core source code. I btw use powershell with a function I found online[1], that makes it kinda easy to do (since it even copies it to the clipboard). I

[tw] Re: Embed a ZIP for download?

2015-02-23 Thread Stephan Hradek
Am Montag, 23. Februar 2015 08:54:49 UTC+1 schrieb PMario: So you want to distribute the application within the documentation? I want to host the TiddlyWiki on (e.g.) tiddlyspot. As a sideefect yes, the documentation would contain the zip in a saveable form. -- You received this message

[tw] Re: Embed a ZIP for download?

2015-02-23 Thread PMario
If you use eg: github to host 2 different files, you can use a simple download link in TW and you don't have the mess with converting zip to base64 and back. If you use the github release feature [1][2], they will create a zip with your program and the docs contained in a single zip file. So

[tw] Re: Embed a ZIP for download?

2015-02-23 Thread Stephan Hradek
Am Montag, 23. Februar 2015 09:31:22 UTC+1 schrieb PMario: If you use eg: github to host 2 different files, you can use a simple download link in TW At the moment I have difficulties using GIT. My browsers are no longer supported by them and the commandline also is very reluctant :(

Re: [tw] Re: Embed a ZIP for download?

2015-02-23 Thread Andreas Hahn
Hey Stephan, at the moment TW is incapable of handling binary files (i.e. zip files). Unless you want to make big changes to various parts of the core, I suggest you do the following: 1. Convert your .zip into a base64 string 2. Place it inside a plain text tiddler (for reference) 3. Place a

Re: [tw] Re: Embed a ZIP for download?

2015-02-23 Thread Andreas Hahn
Yes, it is unfortunately it is the only way to do it, without editing core source code. I btw use powershell with a function I found online[1], that makes it kinda easy to do (since it even copies it to the clipboard). /Andreas [1]

[tw] Re: Embed a ZIP for download?

2015-02-22 Thread PMario
So you want to distribute the application within the documentation? If you open the docs, it should be possible to say. save the zip from a file tw. right? -m -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop