简体   繁体   中英

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 :)

您可以从此处找到的apache使用fileUpload。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM