Hi Donmor

> It seems that the code provides no downloading interface. The only thing they 
> do is to get the content of current page.

That makes sense. For TiddlyDesktop, nw.js does permit the ordinary download 
mechanism. Sadly, the TiddlyFox saver doesn’t support downloading.

So, there might be a few ways to approach this:

* Research ways to enable the ordinary download mechanism within your web view. 
You may find https://github.com/Jermolene/FileSavingDemo 
<https://github.com/Jermolene/FileSavingDemo> useful; it’s a minimal test case 
for TW5’s download saver mechanism
* Inject a new saver module that works similarly to the TiddlyFox one except 
that it supports downloading as well as saving

Best wishes

Jeremy

> 
> 在 2019年4月27日星期六 UTC+8下午9:49:39,Jeremy Ruston写道:
> Hi Donmor
> 
>> The "Download Empty" button in the wiki page does not work in my app. I'm 
>> not sure whether this function can be handled by injecting js, just like 
>> saving function handled by TiddlyFox or TiddlyDesktop. The button invokes an 
>> method in $:/core/modules/widgets/action-sendmessage.js, which will pass an 
>> url begins with "blob:" to the browser, but WebView won't support this 
>> scheme. I'm now finding a way to change the blob things to a base64 string 
>> so that I can decode it to a byte array. Anyone can help? :-)
> 
> Just to be clear, does ordinary saving work in your app? Have you injected a 
> custom saver?
> 
> Downloads are handled by the same saver module mechanism that we use for 
> saving, but with the “method” parameter to the saver passed as “download” 
> instead of “save” or “autosave”.
> 
> Perhaps you can share some more details of how your app is working at the 
> moment?
> 
> Best wishes
> 
> Jeremy
> 
> 
> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWikiDev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddly...@ <>googlegroups.com <http://googlegroups.com/>.
>> To post to this group, send email to tiddly...@ <>googlegroups.com 
>> <http://googlegroups.com/>.
>> Visit this group at https://groups.google.com/group/tiddlywikidev 
>> <https://groups.google.com/group/tiddlywikidev>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywikidev/c32330c5-74a7-4aad-9d3f-cee8a11eda6d%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywikidev/c32330c5-74a7-4aad-9d3f-cee8a11eda6d%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywikidev 
> <https://groups.google.com/group/tiddlywikidev>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/60be369a-539e-4050-a411-cc11cd39b739%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywikidev/60be369a-539e-4050-a411-cc11cd39b739%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/2DD2A4F6-57CC-4BDB-82AB-AE690EC529C9%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to