Hi i am new to this,

I have to download a file from database if user clicks the link or button in webpage (with open and save options window).

I have written code to convert file data from database into bytes and i set to ServletOutputStream and i am displaying window also .

My problem is how to connect the Streamdata into window.

Please anybody can send logic or code to do this functionality.