By the following code i got image as the responce.
if (http.readyState == 4 && http.status == 200) {
ver image=http.responseText;
}
actually when i gave a call to server using ajax the server responded with an image. so now i have stored the image in a variable "image". I think this is fine but now how do i save the binarydata in variable "image" as an image file or how do i display it in a browser? can we get the binarydata using ajax? if so how do i save or display it in browser? kindly help me? Thanks in advance.