Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hexadecimal???
Message
From
21/04/2006 15:10:15
 
 
To
21/04/2006 14:06:36
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01114191
Message ID:
01115550
Views:
7
>>
>>I was using SQL passthru to put data into a remote database that was based on 'MySQL'. It seemed to require sending the data as text. When database receives command it converts the text back to binary and stores it. End result is it takes up same amount of space as original.
>
>This is quite interesting, and good to know in case I may need to do anything with MySql. When you retrieve a blob off such a table, does it also come as hex or as it was?

It comes back as it was. It comes back as a blob in Fox cursor, which can then be assigned to a string and then to a file.
*
** Retrieve PDF Blob
*
CURSORSETPROP("MapBinary",.T.,0)
CURSORSETPROP("MapVarchar",.T.,0)
lcQuery = ""
TEXT TO lcQuery TEXTMERGE NOSHOW 
	SELECT PDF FROM Disciplinary D WHERE D.DOC_Id = 2881
ENDTEXT 
SQLEXEC(hMySQL,lcQuery)
PDFRetrieve = SQLResult.PDF
STRTOFILE(PDFRetreive,"TestPDF.pdf",0)
Previous
Reply
Map
View

Click here to load this message in the networking platform