Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying general vfp field in c#
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01321933
Message ID:
01322291
Vues:
20
This message has been marked as the solution to the initial question of the thread.
>>byte[] ba = (byte[])Tables.Tables["company"].Rows[0]["Image"];
>>MemoryStream stream = new MemoryStream(ba);
>>stream.Write(ba, 0, ba.Length);
>>Bitmap bitmap = (Bitmap)Bitmap.FromStream(stream, true); --> parameter is not valid...
>
>>this.pictureBox1.Image = bitmap;
>
>I don't know why the error is still, but i did the next test.
>I saved image field on file d:\test.jpg and changed code for this:
>
>Bitmap bitmap = new Bitmap("d:\\test.jpg");
>this.pictureBox1.Image = bitmap;
>
>and it works, that means the image on general field is ok right?

That is odd. Maybe VFP changes the image when putting it into the general field. Maybe try to post your question in the VFP section to get more VFP'ers to look at it.
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform