Dear All,

When IMAGE files are POSTed to JSP page, how can i store them in image format i.e. in binary format?

My JSP page is accepting binary stream and writing it to a file. As the data is an image, i need to read the input in binary format and store it in binary(as-is) format. How can i do this in Java? Input to the JSP page can be anything - audio, video, text or image files. And hence, need to store them in binary format.

My code works for text file and is not working for .jpg file - i am getting blurred image.

Any help would be greatly appreciated.

Thanks,
symbian_ravi