Created
June 1, 2012 17:26
-
-
Save PaulKinlan/2853817 to your computer and use it in GitHub Desktop.
http://webintents.org/save image/* as Blob client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i = new Intent({ | |
"action": "http://webintents.org/save", | |
"type": "image/*", | |
"data": blob | |
}) | |
var onsuccess = function(data) { | |
var img1 = document.getElementById("img1"); | |
img1.src = URL.createObjectURL(data); | |
}; | |
var onerror = function(){ }; | |
window.navigator.startActivity(i, onsuccess, onerror); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment