Hello, I am currently working on an application that is designed to showcase dynamically generated images stored on a server. The process involves fetching the image, typically in PNG format, using an Ajax Request. The data retrieved appears as follows:
"PNG
IHDRLXxs
sBIT|d pHYsaa?i IDATxw|U~{BI(H/4AaeQQp>n]Wݯ"W?~tuuW]""R)RBI w~;)7 Iя.................................
..........................................."
This data is structured similar to what you see in the PNG specifications.
Within my application, I have a Text:image element where I aim to display the image, but I am unsure of the proper method to do so. Can anyone provide guidance on this?
Below is the code snippet for the Ajax request:
Ext.Ajax.request({
url: 'http://localhost/my_url/you_dont_need_to_know_this',
success: function(response){
//img.setData(response.responseText); //img is a Ext:image component.
debugger;
},
scope: this
});