nyanev
nyanev

Reputation: 11519

Java receive file from http request

I should write servlet that receive File from request. I want to store this file in local dir on the server. How can I do that? Thanks a lot :)

Upvotes: 1

Views: 4402

Answers (2)

Buhake Sindi
Buhake Sindi

Reputation: 89209

BalusC wrote an excellent blog on FileServlet. This will help you.

Oops, the above-mentioned article shows you how to do file download, to do file upload, use the Apache FileUpload library instead.

Upvotes: 2

gred
gred

Reputation: 537

You can use fileUpload from apache found here.

Upvotes: 3

Related Questions