Download question

Sep 1, 2010 at 7:46 AM
Do you have any more example of how to get the stream down to a file on the local harddrive?
I try to do like this, and it works fine with .txt files, but with other files there seems to be some encoding issues.
ICloudFileSystemEntry file = root.GetChild("Test.pdf");
Stream data = file.GetContentStream(FileAccess.Read);
StreamReader reader = new StreamReader(data, true);                              
 StreamWriter writer = new StreamWriter(@"C:\test.pdf");              
Sep 2, 2010 at 8:52 PM

Ok, solved it.

The above code was not even close...


Sep 4, 2010 at 11:39 AM
Hi Erik, on the documentation wiki you will some sample as well. I would appreciate ideas for new usefull examples with helps to make the start easiee. regards Dirk