Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extract BMP pic from Memo field with binary data
Message
De
27/04/2008 19:08:41
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
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:
01313399
Vues:
11
>
>CREATE CURSOR tempc (tememo M nocptrans)
>x="c:\fgr\fgricons\test.bmp"
>INSERT INTO tempc(tememo) VALUES (CREATEBINARY(x))
Herein lies the rub. The previous line should have been
INSERT INTO tempc(tememo) VALUES (CREATEBINARY(filetostr(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"

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform