My goal is to display an image in Sencha Touch 2.
As of now, I'm doing something like this:
{
xtype:'image',
src: 'resources/icons/default_avatar.png',
height: 256,
width: 256
}
In the future, I want to get those images from the database.
In PouchDB, this looks like:
"avatar.png": {
"content_type": "image/png",
"digest": "md5-ewjS8WP/imog6RFh07xqHg==", <-- altered
"length": 10741,
"data": "abe24==" <-- made this up; too long to paste
}
I am trying to accomplish the following:
Say there are 2 buttons (ids: ['b1', 'b2']. When I click on one, I get taken to another page and see the image that corresponds with the clicked button.
I look up 'b1' in the database and find the base64 image. How can I display that? It looks like the "src" property is only for urls.