Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binary String To File question
Message
From
07/08/2003 17:01:55
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Binary String To File question
Miscellaneous
Thread ID:
00817996
Message ID:
00817996
Views:
62
I have a VFP8 table that has a memo field. This memo field stores a JPG as binary.

Using C#, how can I extract the memo data from the current record and save it to disk as .JPG?

I tried using:

////////////
string lc_var;
lc_var = dr["empphoto"].ToString();

FileStream oFs = new FileStream(cFileName,FileMode.CreateNew,FileAccess.ReadWrite);
StreamWriter oWriter = new StreamWriter(oFs);
oWriter.Write(lc_var);
oWriter.Flush();
oWriter.Close();
oFs.Close();
////////////

Thanks,

Jerry
Reply
Map
View

Click here to load this message in the networking platform