I want to send a file using WCF in streaming transfer mode. At the server side I have t开发者_C百科he following code.
I get a FileStream(filename,FileMode.Open,FileAccess.Read,FileShare.ReadWrite) and then a StreamReader(stream,true).
Question: What is different between FileStream and StreamWriter in .Net? What context are you supposed to use it? What is their advantage and disadvantage?
I have an xml file (converted from xfdl) which contains something like: <custom:popUp xfdl:compute=\"toggle(activated,\'off\',\'on\') == \'1\' ? viewer.messageBox(\'o Once you click ..... page.&am
I\'m trying to write a class that will copy a file from one location to another and report progress. The problem that I\'m having is that when the application is run, the progress will shoot from 0 to
I just can\'t get the streamResource to get a file from my computer. At first i tried the Application.GetResourceStream
I am using the following c# code to convert an image file to a base64 string using (var fs = new FileStream(filename, FileMode.Open, FileAccess.Read))
Well i guess i ll have to make a trilogy related to the question of mine found at Out of memory e开发者_StackOverflowxception while loading images
I need a method that reads a file to a byte array asynchronously but i don;t know what size the file will be (it can be a few Kb of a good few Mb).
Let\'s say I have a corpus of documents which I want to read one by one and store them in a data structure. The structure will probably be a list of something. That something class will define a singl