response.addHeader("Content-Disposition", "attachment; filename="+fileName);
//Code to get the data from DB
// Save the data in String fileData;
but whenever the program executes, it ask to open/save file. After clicking on any button, the mouse cursor suggesting the
process is going on, I waited for long time but on the page it still suggesting processing. File downloaded and it is fine.