Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
http://webintents.org/save image/* as Blob client
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