Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extract BMP pic from Memo field with binary data
Message
 
 
À
27/04/2008 17:29:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01313308
Message ID:
01313456
Vues:
12
You're missing FILETOSTR(). IOW, you're storing a file name instead of its contents.
INSERT INTO tempc(tememo) VALUES (CREATEBINARY(FILETOSTR(x)))
>
>CREATE CURSOR tempc (tememo M nocptrans)
>x="c:\fgr\fgricons\test.bmp"
>INSERT INTO tempc(tememo) VALUES (CREATEBINARY(x))
>y="c:\fgr\fgricons\test1.bmp"
>STRTOFILE(tememo,y)
>
>
>What I get is an empty bmp pic and I check the contents of tememo I have "c:\fgr\fgricons\test.bmp"
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform