MySQL Forums
Forum List  »  German

Bilder speichern in Datenbank
Posted by: Daniel Müller
Date: April 23, 2014 03:07AM

Hallo,

ich habe mich hier angemeldet da ich nur positives über das Forum gehört habe :)

Ich besuche aktuell in einem Abendkurs einen Programmier-Kurs, Schwerpunkt SQL.
Da ich am Anfang bin, habe ich wenig bis fast kein Wissen in diesem Gebiet.

Ich möchte in einer Datenbank Bilder einlesen bzw. ein Verweis reicht.

Laut meiner Recherche, ist der einfachste Weg eine Tabelle zuerstellen und darin die Bilder zuspeichern.

Ich habe das Bild in dem selben Ordner wie den Script abgelegt.
Aber trotzdem findet er "1.png" nicht??
Tabelle und Datenbank wird ohne Fehler erzeugt.

Bitte um Hilfe!!!

Vielen Dank im voraus


CODE:

Drop database if exists bilder;
CREATE SCHEMA `bilder` ;

CREATE TABLE `bilder`.`table_picture` (
`idtable_picture` INT NOT NULL,
`picture_pfad` VARCHAR(45) NULL,
`parameter` VARCHAR(45) NULL,
PRIMARY KEY (`idtable_picture`));

LOAD DATA LOCAL INFILE '1.png' INTO TABLE `bilder`.`table_picture`;

Options: ReplyQuote


Subject
Views
Written By
Posted
Bilder speichern in Datenbank
3121
April 23, 2014 03:07AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.