从链接下载pdf或mp4视频文件并使用带有c#的asp net保存在本地文件夹中 [英] download pdf or mp4 video file from link and save in local file folder using asp net with c#

查看:212
本文介绍了从链接下载pdf或mp4视频文件并使用带有c#的asp net保存在本地文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从链接下载pdf或mp4视频文件并使用asp net保存在本地文件夹中c#



示例我有pdf喜欢 -

http://www.abc.com/getpat/abc.pdf

http://www.abc.com/getpat/abc.mp4



abowe文件上传到我的网站。

我需要下载客户端系统的文件。



这个我需要通过asp.net中的c#代码存储本地系统的两个文件。

download pdf or mp4 video files from link and save in local file folder using asp net with c#

Example i have pdf like --
http://www.abc.com/getpat/abc.pdf
http://www.abc.com/getpat/abc.mp4

the abowe files are uploaded in my website.
that files i need to download client system.

this two files i need to store local system through c# code in asp.net.

推荐答案

您无法将文件推送到客户端文件系统。给他们一个他们点击的链接,流式传输文件,然后将获得允许他们打开或保存的框。
You can't push files to the client file system. Give them a link they click on that streams the file and the will get the box that lets them open or save.


这篇关于从链接下载pdf或mp4视频文件并使用带有c#的asp net保存在本地文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆