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 04:24:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01313308
Message ID:
01313372
Views:
9
What do you mean, "doesn't work" ? What is VFP version? It works for me in VFP9

>
>I have tried to use STRTOFILE but it did not work with data saved by createbinary. It worked only when I did this:
>
>USE enroll
>locate
>lcBmpFile = "C:\fgr\fgricons\test.bmp"
>REPLACE template WITH filetostr(lcBmpFile)    && template is a Memo binary
>
>lcBmpFile = "whatever.bmp"
>STRTOFILE(template, lcBmpFile)
>
>&& This one works, however when I save the image using createbinary() in template Memo, STRTOFILE does not work
>
>replace enroll.template WITH (CREATEBINARY(tpt.tpt))    && tpt is a template.
>
>
>What do you think I should do?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform