【发布时间】:2011-02-19 19:41:11
【问题描述】:
我在 Google Docs 上上传文件为:
DocumentsService myService = new DocumentsService("");
myService.setUserCredentials("username@domain.com", password );
DocumentEntry newEntry = myService.UploadDocument(@"C:\Sample.txt", "Sample.txt");
但是当我尝试上传 3 MB 的文件时,我得到一个异常:
未处理的类型异常 'Google.GData.Client.GDataRequestException' 发生在 Google.GData.Client.dll 附加信息:执行 请求失败: http://docs.google.com/feeds/documents/private/full
如何将大文件上传到 Google 文档? 我正在使用 Google API 版本 2。
【问题讨论】:
标签: c# upload google-docs