java 数据库里面有存放路径,怎么去下载这个路径的内容?
天蓬老师
天蓬老师 2017-04-18 10:46:56
0
2
627
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
巴扎黑

IO streams. . . .

伊谢尔伦

This method is not recommended, but there are solutions:
1. Develop an interface, and the interface parameters can uniquely identify 'the path stored in the database'
2. Use the IO stream in the interface, get the path according to the database, and read the IO Return to the client
I think the normal solution is:
1. Create a new directory locally to store your files and save the relative path. For example, if you create this level directory src, it will be doc/abc.doc. Then what you save in the database is doc/abc.doc
2. Use nginx and other configurations to configure the external network to access the directory. Configure the root directory to src, and that’s it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template