PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
[WD7.5] Inserting an image into a MySQL blob field
[WD7.5] Inserting an image into a MySQL blob field
Started by David, Jul., 08 2004 9:34 PM - 1 reply
Connect yourself…
David
#1
Posted on July, 08 2004 - 9:34 PM
Hello!!
I'm trying to send an image to a blob field in MySQL, but for some reason i can't. here's some code:
reg = 2 // register number
gIMG= c:\"images\someimage.jpg" // image path
q = "UPDATE func SET foto = {WDBinaryMemo('"+gIMG+"')} WHERE fid = "+reg // the query
qRes = SQLExec(q, "QR1")
Instead of dumping the file to the database it only stores its path, why? Am i doing something wrong? Is missing something?
I really appreciate some help
thanks...
Report
0
0
Thilo Rieger
#2
Posted on July, 09 2004 - 10:55 AM
Hi,
if you use the navite access to mysql, you must use the memo funftions, like hlinkmemo. This works fine.
Greetings
Thilo
Hello!!
I'm trying to send an image to a blob field in MySQL, but for some reason i can't. here's some code:
reg = 2 // register number
gIMG= c:\"images\someimage.jpg" // image path
q = "UPDATE func SET foto = {WDBinaryMemo('"+gIMG+"')} WHERE fid = "+reg // the query
qRes = SQLExec(q, "QR1")
Instead of dumping the file to the database it only stores its path, why? Am i doing something wrong? Is missing something?
I really appreciate some help
thanks...
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text