Created
November 18, 2016 09:52
-
-
Save samueleastdev/69aa5b1bf0be029f611aa80e056dae19 to your computer and use it in GitHub Desktop.
Base64Encode ImageView With Appcelerator
This file contains 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 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