Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extract BMP pic from Memo field with binary data
Message
 
 
To
27/04/2008 17:29:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01313308
Message ID:
01313456
Views:
11
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform