Uri documentUri = new Uri(entry.Content.AbsoluteUri); Stream stream = service.Query(documentUri); StreamReader streamReader = new StreamReader(stream); StreamWriter streamWriter = new StreamWriter("C:\\example.html"); string line = ""; while( (line = streamReader.ReadLine()) != null) { streamWriter.WriteLine(line); } streamReader.Close(); streamWriter.Close();
I am using your method to download a Doc file from my Google Doc account, but the images in the Doc file went missing.
ReplyDeleteCurrently use the new v1.5 .Net client, and noticed the DocumentsRequest.Download() method.
However, it request parameter of Document, so how do I pass in DocumentEntry?
Thanks!
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDelete