从网络上传文件到我的服务器 [英] uploading a file from web to my server

查看:83
本文介绍了从网络上传文件到我的服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我正在寻找
的asp.net代码
将文件直接从Web上传到我的服务器.

像这个样本:

直接从:
上传 http://www.sample.com/sample.exe

到:
http://www.mydomain.com/

我应该提到我不想先将文件下载到本地计算机,然后再将其上传到主机.
所有相关软件都具有从本地计算机而不是我们地址上传文件的能力.

解决方案

您到目前为止尝试了什么?

这是询问者的期望:
1. 先尝试您要做什么!
2.制定看起来像问题/无法解决的问题.

试试看,告诉他们是否遇到问题.
之后,成员将非常乐意为您提供帮助.


转到以下链接
http://support.microsoft.com/kb/307023 [ 解决方案

What have you tried so far?

Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help after this.


Go to the following link
http://support.microsoft.com/kb/307023[^]

Implement the same thing in your web applications code behind to make a web request to the http://www.sample.com/sample.exe

Now get the Stream and write it to your server file system from the code behind of the application(The server on which http://www.mydomain.com/ is hosted


You can''t upload a file you don''t have the bits to.

You can do one of the following:
1) Create some kind of service on your server that accepts an URL and automatically downloads the file, or
2) Write an app that pulls the bits down, and as it does, it pushes them to the server without saving a local copy.

Cheers.


这篇关于从网络上传文件到我的服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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