Skip to content

Instantly share code, notes, and snippets.

@samueleastdev
Created November 18, 2016 09:52
Show Gist options
  • Save samueleastdev/69aa5b1bf0be029f611aa80e056dae19 to your computer and use it in GitHub Desktop.
Save samueleastdev/69aa5b1bf0be029f611aa80e056dae19 to your computer and use it in GitHub Desktop.
Base64Encode ImageView With Appcelerator
var image = logsData[i].image;
var logImage = Ti.UI.createImageView({
image : image
});
var tb = logImage.toBlob();
htmlPdfBuilder += '<img src="data:image/png;base64,' + Ti.Utils.base64encode(tb) + '" />';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment