如何使用ASP.NET Web应用程序将文件从Google驱动器上载到本地驱动器 [英] How to upload the file from Google drive to local drive using ASP.NET web application

查看:75
本文介绍了如何使用ASP.NET Web应用程序将文件从Google驱动器上载到本地驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以使用asp.net网络应用程序将文件从谷歌驱动器直接上传到本地驱动器



我尝试过:



我尝试了一些示例代码。

Is possible to directly upload file from google drive to a local drive using asp.net web application

What I have tried:

I have tried with some sample code.

推荐答案

不是直接,不是。 Web应用程序根本无法访问客户端文件系统。



您的ASP.NET代码可以提供指向Google Drive文件的直接链接,也可以下载来自Google云端硬盘的文件,将数据放入它发送到客户端的响应中的字节流中。客户端必须决定如何处理该文件。



HTTP Web应用程序仅支持请求/响应。客户端发出Web应用程序的请求,并以某种内容响应。如果没有先从中获取请求,它就无法将内容推送到客户端。
Not directly, no. A web application has no access to a client file system at all.

Your ASP.NET code can either provide a direct link to the Google Drive file or it can download the file from Google Drive and put the data in the stream of bytes it gets into a Response it's sending to the client. The client will have to decide what to do with the file.

A HTTP web application only supports "request/response". The client makes a request of the web application and it responds with some kind of content. It can NOT "push" content to a client without first getting a request from it.


这篇关于如何使用ASP.NET Web应用程序将文件从Google驱动器上载到本地驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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