AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi Last Bild von der Datenbank
Thema durchsuchen
Ansicht
Themen-Optionen

Last Bild von der Datenbank

Ein Thema von mr_fahrrad · begonnen am 29. Dez 2006 · letzter Beitrag vom 29. Dez 2006
Antwort Antwort
mr_fahrrad

Registriert seit: 28. Dez 2006
46 Beiträge
 
#1

Last Bild von der Datenbank

  Alt 29. Dez 2006, 16:54
Wie man bildet, wann das web browser Bilder von der Datenbank erhalten?

Beispiel:
das src ist c:\meinFoto.jpg und ich habe eine Tabelle mit auffange URL und BLOB (Abbildung).
Zitat:
Url BLOB
c:\meinFoto.jpg (Picutre)
c:\anderFoto.jpg (Picutre)
c:\MeineFahrrad.jpg (Picutre)
Wenn WebBroser Last Bild-c:\meinFoto.jpg Nehmen ein Bild von entsprechender Blobakte in der Datenbank. Wie sie?

Es gibt ein "OnLoadImage event" ?

-----------------
In English

How to make when the WebBrowser get Images from Database?

example:

the src is c:\meinFoto.jpg and I have a Table with fields url and BLOB (Picture).

Url BLOB
c:\meinFoto.jpg (Picutre)
c:\anderFoto.jpg (Picutre)
c:\MeineFahrrad.jpg (Picutre)

When WebBroser load image c:\meinFoto.jpg take a image from corresponding blob file in Database. How do it?

There are a OnloadImage event?
  Mit Zitat antworten Zitat
Benutzerbild von Phoenix
Phoenix
(Moderator)

Registriert seit: 25. Jun 2002
Ort: Hausach
7.611 Beiträge
 
#2

Re: Last Bild von der Datenbank

  Alt 29. Dez 2006, 17:08
Uh... I think you should stick to posts complete in english.

In the first line you wrote something like "how to educate when a web browser gets an image from a database" which does not really make sense.

Anyway... we will need more information from you.
What technique do you use to prepare the data for the web browser on server side?

Then you need to understand, that a webbrowser never ever requests a C:\filename URI but will request a protocol://host.domain/path/filename.

The only way to ge a webserver retrieve a picture from a database is to
  • either: use a gateway file like picture.php and supply the filename as a argument. Like http://server.de/picture.php?picturename.jpg - the php file then will retrieve the picture from the database and send it to the browser.
  • or: use the described solution above in addition to what is called 'rewriting' rules. Then you can request a filename.jpg and the web servers rewriting rule will rewrite the url to picture.php?filename.jpg
Sebastian Gingter
Phoenix - 不死鳥, Microsoft MVP, Rettungshundeführer
Über mich: Sebastian Gingter @ Thinktecture Mein Blog: https://gingter.org
  Mit Zitat antworten Zitat
marabu

Registriert seit: 6. Apr 2005
10.109 Beiträge
 
#3

Re: Last Bild von der Datenbank

  Alt 29. Dez 2006, 17:11
Hallo,

Zugriffe auf eine Datenbank würde ich über eine Skript-Lösung (PHP, ASP, ColdFusion, ...) oder über ein APP (Asynchronous Pluggable Protocol) lösen. In beiden Fällen würde ein direkter Verweis auf eine Datei im File-System garnicht erst auftauchen. Wie sind denn die Verweise (z.B. C:\MeinFoto.jpg) in den HTML-Code hinein gekommen?

Freundliche Grüße
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:30 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz