[Sugar-devel] Downloading data: URIs

Lucian Branescu lucian.branescu at gmail.com
Wed Jul 29 09:07:50 EDT 2009


Here's how using data URIs would work to create files or get things
into the Journal.
http://files.getdropbox.com/u/317039/datauridemo.html

There's no way do read files or Journal objects, though. Gears should
help with this, as offers a way to read files from JavaScript.

I think Firefox has some APIs for manipulating files as well, that's
how TiddlyWiki does itl. http://www.tiddlywiki.com/

2009/7/29 Lucian Branescu <lucian.branescu at gmail.com>:
> There's a bug in Browse preventing it to save data: URIs.
> http://trac.sugarlabs.org/ticket/1029
> I've implemented a workaround. You can either get that patch or my
> Browse branch http://git.sugarlabs.org/projects/browse/repos/webified
> to try it out.
>
> With data: URIs, web apps can create files and get them into the
> Journal. This works on all browsers (in Firefox, you are prompted to
> download a file), but it has its limitations.
>


More information about the Sugar-devel mailing list