从数据库中检索文件路径
实际上我必须通过浏览按钮选择发烧友,当我点击上传按钮时,这些音频文件应该保存在数据库中,同时它们应该以网格视图显示文件名和下载链接按钮。现在,当我点击这个下载链接按钮时,文件应该下载到我的应用程序所在的文件夹。我能够在数据库和网格视图中显示我的文件名,但我无法获取文件路径。我怎么能得到文件路径。
我的尝试:
i am not在网格视图和数据库中找到音频文件的路径我只找到文件名如何获取文件路径
Actually i have to choose an audiophile by browsing with browse button and when i click on upload button those audio files should be saved in database and at the same time they should be displayed in grid view with file name and download link button.Now when i click on this download link button the files should be downloaded to the folder where my application is present.I am able to display my file name in database and grid view but i am unable to get the file path.How can i get the file path.
What I have tried:
i am unable to find the path of the audio file in grid view and in database i am finding only the file name how to get the file path
你找不到原始路径由于安全原因,并且出于安全原因,您无法决定何时保存文件(或者根本保存文件)。
You can't find the original path due to security reasons, and you can't dictate when a file is saved to (or that it is saved at all) for security reasons also.