download file link in DSP

Hi,

I am trying to create dsp page to download a local file. My DSP code is as below. in the below code i am invoking a service to write the DB content to csv file. Then i have to provide a link to download the file. Below code is not working. can someone please help me to rectify the issue.

%invoke PrpcInitialization.services:writeMasterDataTableContentToFile%

Download

If you’re trying to download a file from remote server, you will need to use protocol http instead of file for the href.

Thanks Xiaowei Wang.

I am trying to download the file created in the same server and same package where DSP resides.

I am able to download the file from browser with this link file:///%value fileName% but only from DSP the link is not working.

Protocol file:// could only download something from local, it equals to open a local file by browser.