Announcement

Collapse
No announcement yet.

Bild in Datenbank speichern

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bild in Datenbank speichern

    Hallo freunde,
    Ich will gerne das von Benutzer ausgewähltes Bild in Datenbank speichern.
    Es ist mir gelungen, das durch ein OpenDialog ausgewählte Bild in eine ImageIcon Objekt darzustellen, damit der Benutzer das Bild in meinem Programm sehen kann. Also habe ich jetzt ein ImageIocn Objekt und möchte dieses in Datenbank speichern. Mein Datenbankfeld ist ein Blob Feld und in meinem Programm realisiere ich es als byte[].
    kann jemand mir helfen und ein beispiel Code schreiben, wie ein erzeugte ImageIcon Objekt in Datenbank gespeichert wird.
    Vilen Dank

  • #2
    Welche Datenbank? In Oracle verwendet man einen OutputStream und einen Blob zu speichern.

    Dim
    Zitat Tom Kyte:
    I have a simple philosophy when it comes to the Oracle Database: you can treat it as a black box and just stick data into it, or you can understand how it works and exploit it as a powerful computing environment.

    Comment

    Working...
    X