Hello, everyone
I have a common question but i havent manage to solve it.
the last part of my jsp file is:
FileOutputStream fileOut = new FileOutputStream(saveFile);
fileOut.write(dataBytes, startPos, (endPos - startPos));
fileOut.flush();
fileOut.close();
in the FileOutputStream before savefile i have to add the location but how can i achieve this? without the manual way which is
FileOutputStream fileOut = new FileOutputStream("D:\\"+ saveFile);
And first of all i would like the file to go to the folder where the specific jsp file is saved.
Any suggestions??
I have a common question but i havent manage to solve it.
the last part of my jsp file is:
FileOutputStream fileOut = new FileOutputStream(saveFile);
fileOut.write(dataBytes, startPos, (endPos - startPos));
fileOut.flush();
fileOut.close();
in the FileOutputStream before savefile i have to add the location but how can i achieve this? without the manual way which is
FileOutputStream fileOut = new FileOutputStream("D:\\"+ saveFile);
And first of all i would like the file to go to the folder where the specific jsp file is saved.
Any suggestions??