if (extension == ".htm" || extension == ".html") { File body = new File(); body.Title = Path.GetFileNameWithoutExtension(item); //body.Description = "A test document"; body.MimeType = "text/HTML"; byte[] byteArray = System.IO.File.ReadAllBytes(item); System.IO.MemoryStream stream = new System.IO.MemoryStream(byteArray); FilesResource.InsertMediaUpload request = service.Files.Insert(body, stream, "application/vnd.google-apps.file"); request.Convert = true;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)