Displaying a image in jquery after an ajax request.

Displaying a image in jquery after an ajax request.

Hi,
I am having difficulty in displaying an image once I have got the data using ajax. It displays some kind of garbage on the screen ( Below is the image ). I am pretty sure its because I am unable to define mime type for the image.

I am not sure how to do this. I searched the net and there are soo many articles jquery ajax and images but nothing really explains how to get this done. I have this problem as I am image/data is taken from a mysql db.