Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting binary data into SQL table using SQLEXEC()
Message
De
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:
00954141
Vues:
27
>>Can anybody offer me any code example(s) for inserting a binary (in my case a .GIF file) into an SQL table using VFP SQLEXEC()?
>
>
>Andrew,
>
>Take a look at How to work with Image field type on SQL Server (binary data)? FAQ #7995. In VFP9 it'll be much easier, thanks to the blob data type.

Hi Sergey,

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?

Thanks again!

Andrew
On a CLEAR day you can see forever.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform