在asp.net中将文件从一个域下载到另一个域 [英] Download a file from one domain to another domain in asp.net

查看:121
本文介绍了在asp.net中将文件从一个域下载到另一个域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想通过在asp.net中使用我的域名服务器来访问另一个域服务器的特定文件夹请帮我。



我创建了一个有两个模块的网站,



ADMIN

USER

它们托管在不同的域上。现在,当用户打开其域名时,假设其abc.com并可以注册他们的公司并从那里上传照片,上传的照片将进入Company_Logo FOLDER。现在假设ADMIN'的域名是xyz.com。现在我希望ADMIN打开它的xyz.com并且可以看到从abc.com上传的照片。

Hi All,

I want to access a particular folder of a another domain server by using my domain server in asp.net Please do needful for me.

I had created one website which has two modules,

ADMIN
USER
They are hosted on different domains. Now when user open its domain suppose its abc.com and can register their company and also upload photo from there and uploaded photo will go in Company_Logo FOLDER. Now suppose ADMIN''s domain is xyz.com . now i want that ADMIN open its xyz.com and can see the photo uploaded from abc.com.

推荐答案

简单,

你可以通过网络访问对该文件夹的开放访问 [ ^ ],或FTP [ ^ ]并从第二个服务器访问该文件夹。



您也可以使用HTTP请求响应来完成此操作,其中响应的内容将使用你需要的MIME类型。



干杯,

江户
Simple,
You can open access to that folder, by Network access [^], or FTP [^] and access that folder form the second server.

You can also accomplish this using the IIS using HTTP request-response where the content of the response will use the MIME type you need.

Cheers,
Edo


这篇关于在asp.net中将文件从一个域下载到另一个域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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