Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How VFP handles Binary data?
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00531339
Message ID:
00531361
Vues:
51
Jess,

VFP can easily hold binary data in memos. Make sure the memo is set to binary so you don't have code page translation issues.

create cursor x1 ( m1 m nocptrans )
append blank
lcBinary = filetostr( "someimage.jpg" )
replace x1.m1 with lcBinary
lcX = x1.m1
strtofile( lcX, "copyofsomeimage.jpg" )
? lcX == lcBinary

So provided your OCX can output it's result to a memory buffer that you can allocate from VFP this should be easy to get running.

>We're using U.r.U finger scanner for our HRM systems with Payroll module. At first, we use VB with Pentacom's OCX control for interfacing with the finger scanner. If using Access MDB to handle the binary data emits by the scanner, there is no problem. With VFP table however, it can not handle the data (Memo field). This time, we tried VFP form with the same OCX control expecting it to work with DBF (Memo Binary or ordinary Memo) as field type but the data have different value. The CREATEBINARY() function does not help either.
>
>Is VFP capable of handling Binary Data? How do you handle Binary Data in VFP?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform