Click here to Skip to main content
15,893,381 members
Home / Discussions / C#
   

C#

 
AnswerRe: Calibration and Tolerance Pin
Luc Pattyn4-May-10 18:21
sitebuilderLuc Pattyn4-May-10 18:21 
GeneralRe: Calibration and Tolerance Pin
jokerleo4-May-10 20:11
jokerleo4-May-10 20:11 
GeneralRe: Calibration and Tolerance Pin
Luc Pattyn5-May-10 2:44
sitebuilderLuc Pattyn5-May-10 2:44 
GeneralRe: Calibration and Tolerance Pin
Dave Kreskowiak5-May-10 4:22
mveDave Kreskowiak5-May-10 4:22 
QuestionReading standardoutput to a file Pin
svanwass4-May-10 14:06
svanwass4-May-10 14:06 
AnswerRe: Reading standardoutput to a file Pin
Dan Mos4-May-10 14:54
Dan Mos4-May-10 14:54 
GeneralRe: Reading standardoutput to a file Pin
svanwass4-May-10 15:00
svanwass4-May-10 15:00 
GeneralRe: Reading standardoutput to a file Pin
Dan Mos4-May-10 16:21
Dan Mos4-May-10 16:21 
try this:
use
string str = r.ReadToEnd(); 

to read the whole content of the StreamReader. Now get the bytes with something like this

byte[] rawbyte= Encoding.Default.GetBytes(str);


now write the bytes to a filestream or use custom bitmap encoding.

FileStream fs = new FileStream("yourfile.here", FileMode.OpenOrCreate);
fs.Write(data, 0, data.Length);


hope it helps.

I'm not sure if it will work. Read the conversation between me and Luc bellow for
details of how ths idea came to me.
GeneralRe: Reading standardoutput to a file Pin
Luc Pattyn4-May-10 16:37
sitebuilderLuc Pattyn4-May-10 16:37 
GeneralRe: Reading standardoutput to a file Pin
Dan Mos4-May-10 16:51
Dan Mos4-May-10 16:51 
GeneralRe: Reading standardoutput to a file Pin
Luc Pattyn4-May-10 17:00
sitebuilderLuc Pattyn4-May-10 17:00 
GeneralRe: Reading standardoutput to a file Pin
Dan Mos4-May-10 17:06
Dan Mos4-May-10 17:06 
GeneralRe: Reading standardoutput to a file Pin
Luc Pattyn4-May-10 17:09
sitebuilderLuc Pattyn4-May-10 17:09 
GeneralRe: Reading standardoutput to a file Pin
Dan Mos4-May-10 17:14
Dan Mos4-May-10 17:14 
GeneralRe: Reading standardoutput to a file Pin
Dan Mos4-May-10 17:15
Dan Mos4-May-10 17:15 
GeneralRe: Reading standardoutput to a file Pin
svanwass5-May-10 6:46
svanwass5-May-10 6:46 
QuestionASP.Net MVC2 for VS 2010 Pin
Darrall4-May-10 9:27
Darrall4-May-10 9:27 
AnswerRe: ASP.Net MVC2 for VS 2010 Pin
hammerstein054-May-10 11:32
hammerstein054-May-10 11:32 
GeneralRe: ASP.Net MVC2 for VS 2010 Pin
Darrall4-May-10 13:00
Darrall4-May-10 13:00 
AnswerRe: ASP.Net MVC2 for VS 2010 Pin
justinonday19-Oct-10 23:06
justinonday19-Oct-10 23:06 
QuestionNeed help in updating an Image datatype in SQL Server Pin
mike_electron4-May-10 8:02
mike_electron4-May-10 8:02 
AnswerRe: Need help in updating an Image datatype in SQL Server Pin
T M Gray4-May-10 8:14
T M Gray4-May-10 8:14 
QuestionC# Write a embedded resource in a folder (Visual Studio) Pin
DJ-Boris4-May-10 7:59
DJ-Boris4-May-10 7:59 
AnswerRe: C# Write a embedded resource in a folder (Visual Studio) Pin
Eddy Vluggen4-May-10 8:25
professionalEddy Vluggen4-May-10 8:25 
GeneralRe: C# Write a embedded resource in a folder (Visual Studio) Pin
DJ-Boris5-May-10 1:33
DJ-Boris5-May-10 1:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.