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:
01321976
Vues:
15
If you change the code to this
byte[] ba = (byte[])Tables.Tables["company"].Rows[0]["Image"];
MemoryStream stream = new MemoryStream(ba);
Bitmap bitmap = new Bitmap(stream);
this.pictureBox1.Image = bitmap;
does it throw an exception on this line "Bitmap bitmap = new Bitmap(stream);"?

>>>This should compile but I don't know if it will work.
>
>
>byte[] ba = (byte[])Tables.Tables["company"].Rows[0]["Image"];
>MemoryStream stream = new MemoryStream(ba);
>this.pictureBox1.Image = new Bitmap(stream); -->this line is generating error, it compiles but when running error: parameter is not valid...
>
>
>do you know something about it?
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform