[Greasemonkey] Binary downloads with GM_xmlhttpRequest

Matthew Gertner matthew at allpeers.com
Fri Jun 3 12:29:22 EDT 2005


Are you sure the data hasn't been Gzipped by HTTP 1.1?

> -----Original Message-----
> From: greasemonkey-bounces at mozdev.org [mailto:greasemonkey-
> bounces at mozdev.org] On Behalf Of Mark Pilgrim
> Sent: Thursday, June 02, 2005 7:47 PM
> To: greasemonkey at mozdev.org
> Subject: [Greasemonkey] Binary downloads with GM_xmlhttpRequest
> 
> I'm writing a "Favicon collector" that downloads favicons and stores
> them locally.  I would prefer to download the action icon data and
> store it (base64'd) with GM_setValue, but when I download, I get a
> string that has been munged, i.e. it is different from the actual
> binary data, and window.btoa complains about invalid characters.  At
> least I think that's what's going on; all I know is that it doesn't
> work.  It doesn't appear to work with the built-in XMLHttpRequest
> object either.  Is there a known issue with downloading binary data
> with GM_xmlhttpRequest?
> 
> --
> Cheers,
> -Mark
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey



More information about the Greasemonkey mailing list