🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #7873

Re: Insertar una imagen en MySQL

#7873
From: David Asorey Álvarez
Date: Sat, 18 Jan 2003 10:23
27 lines
1862 bytes
lestat_l@zensearch.com (Lestat) wrote in message news:<9870e958.0301171525.58db011@posting.google.com>...
> Salu2:
> 
> Muy buenas, tengo un par de dudas respecto a PHP y MySQL: �Alguien
> sabe c�mo se podr�a hacer para insertar una imagen en una tabla de una
> base de datos MySQL con PHP? �Y luego recuperarla para, por ejemplo,
> ponerla en una p�gina web din�micamente?
> 

Para mi gusto, lo ideal ser�a guardar la direcci�n de la imagen en una
tabla en vez de la imagen misma (por otra parte no estoy seguro de que
Mysql admita datos binarios, tendr�a que repasar el manual. Creo que
Postgresql s� que puede). P. ej.:

INSERT INTO TABLA_IMAGENES (DESCRIPCION, DIRECCION) VALUES ('imagen1',
'/imagenes/imagen1.png')
�
INSERT INTO TABLA_IMAGENES (DESCRIPCION, DIRECCION) VALUES ('imagen1',
'http://miservidor/miweb/imagenes/imagen1.png')
 

> Muchas gracias de antemano.

De nada, espero que te sea �til.

-- 
David Asorey �lvarez
Technical Details
Message-ID: <1759581e.0301180223.50657d8b@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <9870e958.0301171525.58db011@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,7490c3ee3a976353
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-01-18 02:23:17 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: forodejazz@yahoo.es (David Asorey Álvarez)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Insertar una imagen en MySQL
Date: 18 Jan 2003 02:23:16 -0800
Organization: http://groups.google.com/
Lines: 27
Message-ID: <1759581e.0301180223.50657d8b@posting.google.com>
References: <9870e958.0301171525.58db011@posting.google.com>
NNTP-Posting-Host: 193.153.118.196
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1042885397 15325 127.0.0.1 (18 Jan 2003 10:23:17 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 18 Jan 2003 10:23:17 GMT