Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binary String To File question
Message
De
07/08/2003 17:01:55
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Binary String To File question
Divers
Thread ID:
00817996
Message ID:
00817996
Vues:
64
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
Répondre
Fil
Voir

Click here to load this message in the networking platform