Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extract BMP pic from Memo field with binary data
Message
From
27/04/2008 19:08:41
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/04/2008 17:29:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01313308
Message ID:
01313399
Views:
10
>
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform