const Cc = Components.classes; const Ci = Components.interfaces; var getDataFromURL = function(aURL){ var ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); var uri = ioService.newURI(aURL, null, null); var channel = ioService.newChannelFromURI(uri); var inputStream = channel.open(); var contentType = channel.contentType; var bis = Cc["@mozilla.org/binaryinputstream;1
{{#tags}}- {{label}}
{{/tags}}