Originally posted by Vijay Raj:
I got the names of all employees in a combo box.
You must mean a drop-down. There's no such thing as a combo box on the web.
On selecting, the employee details is fetched from the database and all this is done using AJAX. I also need to get the image from the database. How do I do that? The image is not stored as a BLOB but is saved as a link.
I'm not sure what you mean by "saved as a link".
If by that you mean that the file path to the image on disk is what is stored in the database, your Ajax call should return a URL that references that file, and then your page can construc an <img> tag using that URL to cause the image to appear.
You do not return image data to the page, it has no way to deal with it. HTML deals with images via the <img> tag and the use of Ajax or any other technology does not change that.