On Tue, Sep 20, 2011 at 4:22 AM, Stephan Beal <[email protected]> wrote:

> On Tue, Sep 20, 2011 at 1:38 AM, Joshua Paine <[email protected]>wrote:
>
>> On 9/19/2011 7:15 PM, Stephan Beal wrote:
>>
>>> and JS cannot natively deal with binary data (that's coming in v5 or
>>
>> whatever new version is coming soon).
>>>
>>
>> Standard javascript doesn't have this ability yet, but individual impl
>> have relevant capabilities. E.g., privileged JS in XUL has access to files
>> and can get base64 strings from them, and the canvas element has a toDataURL
>> method that returns base64 encoded data plus a tiny amount of metadata.
>
>
> The JS version accompanying HTMLv5 (i don't remember the version number)
> contains some support for binary data. Some browsers have already started
> implementing this and some apps already use it (e.g. gmail).
>
> So the option for binary data certainly can't be ruled out altogether.
> OTOH, while JS is expected to (==i expect) be the primary client, there will
> likely be other platforms out there for which base64 is more convenient.
>

The "data:" URI scheme works well for this.  There are examples on this
page:
http://www.websiteoptimization.com/speed/tweak/inline-images/folder-test.htmland
here is a data url that may work, if it comes through properly in this
email:

data:image/gif;base64,R0lGODlhEAAOANUAAMyZNP/MZ7OBG8uYM4ODg8jIyLqHIriFIK58FplnAcmWMaBuCJ5sBpxqBG1tbb2KJf/mgbWCHceUL7B+GIyMjMCNKKNxC5poAsKPKreEH0tLS7+MJ6h2ENOgO/f399ypROazTrSBHLyJJKVzDe+8V97e3vjFYKt5E//0jvb29t/f3//Ub//ge8WSLf/rhf/3kdbW1mxsbP//mf///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAAQAA4AAAaWwNkMMFBIVCmhcglYYgrJpbApq8pmD0MmIpioPLPBC0UmSxGU0kzhgrTe8IroEBIIVBJWS7qEzCwULSsAVoVVJjILDhgBAzIvkJGQJDIMMRUBLTIunJ2cIDINMQ8BGzIsqKmoHzIXMQYBBzIrtLW0HTIJDipcEwgnHCMWCwwNFwkaBCkFBDHOz9AxBAUzKSow2NnaMEhBADs=


Bill
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to