Autor Beitrag
JRegier
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mo 23.05.05 06:55 
Hallo, ich möchte Links zu Bildern in DB speichern was speichert eine DBImage? Und wenn ich Links speichern will, welche Länge kann die Zeichenkette erreichen, ich habe so 200 gedacht oder müßen es 400 sein? na ja VARCHAR speichert ja nur die notwendige länge! Also welche Länge sollte ich sicherheitshalber einstellen?
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Mo 23.05.05 09:53 
Hi,

DBImage speichert das Bild selbst, also die Binäre darstellung.
Wenn du nur den Link speichern willst, würde ich auf nummer sicher gehen und VARCHAR(512) nehmen :)

Gruß
Ken

_________________
Eine Klasse beschreibt die Struktur und das Verhalten einer Menge gleichartiger Objekte.
JRegier Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mo 23.05.05 21:47 
user profile iconCenBells hat folgendes geschrieben:
Hi,

DBImage speichert das Bild selbst, also die Binäre darstellung.
Wenn du nur den Link speichern willst, würde ich auf nummer sicher gehen und VARCHAR(512) nehmen :)

Gruß
Ken


Vielen Dank für die Info! Und was nehme ich dann für die Darstellung eine einfache TImage?
magnoz
Hält's aus hier
Beiträge: 2

Debian, WinXP, ReactOS, BeOS
D5 Ent, D2005 Ent
BeitragVerfasst: Mo 23.05.05 22:38 
Zitat:

Vielen Dank für die Info! Und was nehme ich dann für die Darstellung eine einfache TImage?


ja.

Image1.Picture.LoadFromFile( sPath{: string} );
JRegier Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mo 23.05.05 22:48 
user profile iconmagnoz hat folgendes geschrieben:
Zitat:

Vielen Dank für die Info! Und was nehme ich dann für die Darstellung eine einfache TImage?


ja.

Image1.Picture.LoadFromFile( sPath{: string} );


Vielen Dank für die Info!
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mo 23.05.05 23:37 
Nun ja. Das sind für die DB eben nur Blob-Felder. Ich würde es bevorzugen, dan Kram nur auf der Festplatte zu haben. Also : LoadFromFile usw.

_________________
Gruß
Hansa