I have code that was working well with this statement:
And it suddenly stopped working complaining that base64 doesn't exist
img.setSrc("data:image/png;base64," + base64.encode(me.shippingConfirmation.data.ShippingLabel));
After searching around I found this alternative syntax
It does not fail but the image does not show. I know that the data is good and when I look at img the _src has reasonable looking data in it.
[img.setSrc("data:image/png;base64," + Ext.util.base64.encode(me.shippingConfirmation.data.ShippingLabel));
The actual size of the png that is getting loaded is larger than the window available for it but it has just been cropped before.
Designer 2 Build 341