将大文件上传到Google云端硬盘

时间:2017-05-11 07:18:11

标签: c# google-api google-drive-api google-api-dotnet-client resume-upload

任何人都可以帮助我使用google drive v2 api将大文件(超过1 GB)上传到谷歌驱动器,使用我的c#应用程序使用可恢复的上传

using (var stream = new System.IO.FileStream(fileName, System.IO.FileMode.Open, System.IO.FileAccess.Read)) 
{ 
    try { 
        FilesResource.InsertMediaUpload InsertMediaUploadrequest = m_DestiDriveService.Files.Insert(fileBody, stream, p_FileItem.MimeType); 
        IUploadProgress uploadProgress =InsertMediaUploadrequest.Upload(); } 

0 个答案:

没有答案