I’m using a web API and this includes a method to get a file from within the system. Here is a code snippet it provides
System.IO.Stream s = new System.IO.FileStream(
@"c:\File.txt", System.IO.FileMode.Create);
result = proxy.get_doc_file(fileId, ref s );
s.Close();
Now what I like to do is to convert this stream so that the file is available to download. I believe this is done by using a response object? Basically I’d like the user to get ‘save as’ dialog box.
Any help much appreciated. I’m using C# .net 3.5