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 04:24:44
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01313308
Message ID:
01313351
Views:
8
Hi Sergey,

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?

Thanks,

Bob
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform