GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV 2024
→
[WD7.5] Inserting an image into a MySQL blob field
[WD7.5] Inserting an image into a MySQL blob field
Iniciado por David, jul., 08 2004 9:34 PM - 1 resposta
Conecte-se…
David
#1
Publicado em julho, 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...
Denunciar
0
0
Thilo Rieger
#2
Publicado em julho, 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...
Denunciar
0
0
→ Voltar para WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto