Skip to content

Instantly share code, notes, and snippets.

@feedhenry-gists
Created June 14, 2011 11:28
Show Gist options
  • Save feedhenry-gists/1024715 to your computer and use it in GitHub Desktop.
Save feedhenry-gists/1024715 to your computer and use it in GitHub Desktop.
Tutorial Sencha Touch Display Image
// 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