Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting binary data into SQL table using SQLEXEC()
Message
 
 
À
24/10/2004 17:24:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00953897
Message ID:
00954145
Vues:
18
Andrew,

I think it should be HexEncoder() instead of StrToHex. Try
HexEncoder(FILETOSTR('c:\image_map.gif'))
>Thanks for the pointer. I have downloaded the FOXCRYPTO.DLL and am trying to use the example in the FAQ that you sent me to, as follows:
>set library to foxcrypto.fll
>? SQLEXEC(nSql, "UPDATE mainmap SET mapimage = " + ;
>  StrToHex(FILETOSTR('c:\image_map.gif')) + " WHERE mapid=1")
>I get the message that StrToHex is an unknown program. I've looked into the documentation of foxcrypto and don't see any reference to this function. I suspect I'm missing something very basic. Can you help me see it?
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform