Technical Question - Export binaries

82 views
Skip to first unread message

TonyM

unread,
Sep 3, 2019, 7:58:22 PM9/3/19
to TiddlyWikiDev
Folks,

I believe there has being discussion of this in the past but just want to ask if the ability to save/download binary tiddlers as files?

Such as images, windows.lnk files, small exe's etc... 
Assuming when imported no information is lost, we should be able to export them as viable files?
Understand there are security implications for Internet hosted binaries but on internal, private ot local wikis this would be very helpful.

Thanks for any info you may have
Tony

Jed Carty

unread,
Sep 4, 2019, 3:26:02 AM9/4/19
to TiddlyWikiDev
I made a plugin that lets you do this.

https://github.com/OokTech/TW5-DownloadBinary

TonyM

unread,
Sep 4, 2019, 8:42:31 AM9/4/19
to TiddlyWikiDev
Jed

Thanks. I assume other files are automatically encoded the same way and that they will return to their original "encoding"?

you often have a plugin up your sleeve. Thank heaps

Tony

TonyM

unread,
Sep 7, 2019, 9:11:41 AM9/7/19
to TiddlyWikiDev
Jed,

Forgive my ignorance But I am not sure how to change what exists at the repository into a plugin, at least in a single file wiki.

A little instruction so I can do so would be appreciated.

Thanks
Tony

Jed Carty

unread,
Sep 7, 2019, 3:02:27 PM9/7/19
to TiddlyWikiDev
You can get it from the plugin library using the TWederBob plugin, or just drag and drop it from https://www.ooktech.xyz:8443/Public

TonyM

unread,
Sep 7, 2019, 6:30:50 PM9/7/19
to TiddlyWikiDev
Thanks Jed

Regards
Tony

TonyM

unread,
Sep 8, 2019, 4:11:22 AM9/8/19
to TiddlyWikiDev
Jed,

I have the plugin now but nothing happens when clicking the button (Single File Wiki,  TiddlyServer and TiddlyDesktop) 
I Tried to download $:/favicon.ico which presumably as a png its binary?
does it only work on node or Bob?

Thanks
Tony

Jed Carty

unread,
Sep 8, 2019, 5:58:17 AM9/8/19
to TiddlyWikiDev
It is working for me, I tried to find ways to break it and I haven't been able to find anything other than it doesn't try and download tiddlers that use _canonical_uri fields (you can just download them directly from their location, I may update it to download them in the future).

It shouldn't be limited to working with Bob or node, the behaviour is completely in the browser.

There may be some browser setting that prevents it, but I am not aware of anything that would do that.

The types it downloads are limited to 'image/gif', 'image/x-icon', 'image/jpeg', 'image/jpeg', 'image/png', 'image/svg+xml', 'application/pdf', 'application/zip', 'application/font-woff', 'application/x-font-ttf', 'audio/ogg', 'video/mp4', 'audio/mp3', 'audio/mp4' because those are the ones I thought of at the time. It won't work if the tiddler doesn't have one of those types. Eventually I will probably add a setting that lets you change the list of mime types it will download.

It also will not try and download images that are included using _canonical_uri, the plugin will take tiddlers that are base64 encoded and try to download the non-base64 encoded version.
Reply all
Reply to author
Forward
0 new messages