如何下载另一个网站文件夹的图像 [英] How to download image that is another website folder

查看:61
本文介绍了如何下载另一个网站文件夹的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dim cs = "172.16.16.21/"
          Dim lblDoca = cs + /document/dfmkdfnr.jpeg
          Response.ContentType = ContentType
          Response.AppendHeader("Content-Disposition", "attachment; filename=" + Path.GetFileName(lblDoca))
          Response.WriteFile(lblDoca)
          Response.End()





我尝试了什么:



其实我想下载图片这是另一个项目文件夹....所以我应该给出什么路径



What I have tried:

actually i want to download image which is another project folder....so what path should i give

推荐答案

WebClient webClient = new WebClient();
webClient.DownloadFile(fromPath, saveImgPath);





可以帮到你



问候,

Ketan



may it help you

regards,
Ketan


这篇关于如何下载另一个网站文件夹的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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