In servlet I can write
response.getOutputStream().write(bytes);
So that the file is available to download by user.
But how would I go about it where I'm generating a file in side a applet ?
It is possible if user give a path to save then i can do
OutputStream outputStream = new FileOutputStream(pathtoSave);
But I don't want to prompt user for a path.
Any help regarding this ?