I have created input form in html to slect a file. Then I have used Part to upload the file to Server. `
for (Part p : request.getParts()) {
i++;
String fileName = this.getFileName(part);
part.write(String.valueOf(ServerPath) + File.separator + fileName);
}`
The file currently is uploaded as a whole. But I want to split it somehow and then store it. What is the best way to do it?
Aucun commentaire:
Enregistrer un commentaire