Created
June 14, 2011 11:28
-
-
Save feedhenry-gists/1024715 to your computer and use it in GitHub Desktop.
Tutorial Sencha Touch Display Image
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
// get the format of the image and base64 data from the returned picdata | |
var resultHtml = "<img src='data:image/" + picdata.format + ";base64," + picdata.b64 + "' width='300px' height='300px' ></img>"; | |
// get the last item below the buttons, which should be a container, | |
// and update it with the image | |
var items = inst.v.mainPanel.getActiveItem().items; | |
items.get(items.length - 1).update({ | |
html: resultHtml | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment