我正在使用 GoogleDrive API 将大文件(1 GB+)上传到 Google Drive。我的代码适用于较小的文件。但当涉及到较大的文件时,就会出现错误。
文件转换为byte[]的代码部分出现错误。
byte[] data = System.IO.File.ReadAllBytes(filepath);
这里抛出内存不足异常。
.net c# arrays large-file-upload
.net ×1
arrays ×1
c# ×1
large-file-upload ×1