![]() ![]() I haven't touched the commented lines so you can see what have I tried. MimeType = regKey.GetValue("Content Type").ToString() If (regKey != null & regKey.GetValue("Content Type") != null) String ext = System.IO.Path.GetExtension(fileName).ToLower() Private string GetMimeType(string fileName) Var progress = await request.UploadAsync() Request.AddParents = string.Join(",", parents) Var request = _(file, id, stream, mimeT) //. Using (var stream = new MemoryStream(byteArray)) await fStream.ReadAsync(byteArray, 0, (int)fStream.Length) byte byteArray = new byte īyte byteArray = System.IO.File.ReadAllBytes(fullPath) using (var fStream = new FileStream(fullPath, FileMode.Open, FileAccess.Read, FileShare.Read, 4096, true)) ![]() 3.Data.File file = new 3.Data.File() įile.Name = System.IO.Path.GetFileName(fullPath) ![]() I'm trying to update a file on google drive with this code: private async Task UpdateFileAsync(string fullPath, IList parents, string id) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |