[英]download file Outside of the tomcat apps folder
a "Rookie" question .... 一个“菜鸟”问题....
I have this file : C:/Users/ANTONI~1.ROQ/AppData/Local/Temp/BPCCU/GuiaTransporte.pdf 我有这个文件:C:/Users/ANTONI~1.ROQ/AppData/Local/Temp/BPCCU/GuiaTransporte.pdf
how can I generate a url to download this file from my wab application running on tomcat ? 如何生成URL以从运行在Tomcat上的WAB应用程序下载此文件?
http://localhost:8080/mysite/C:/Users/ANTONI~1.ROQ/AppData/Local/Temp/BPCCU/GuiaTransporte.pdf ... is not working .... http:// localhost:8080 / mysite / C:/Users/ANTONI~1.ROQ/AppData/Local/Temp/BPCCU/GuiaTransporte.pdf ...不起作用....
Roque 罗克
Try to use 尝试使用
<Context docBase="C:/Users/ANTONI~1.ROQ/AppData/Local/Temp/BPCCU/" path="/static" />
reference would be : 参考将是:
http://localhost:8080/static/GuiaTransporte.pdf
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.