Autor Beitrag
jjturbo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 516

Win2000 prof., WinXP prof.
D4 Stand., D5 Prof, D7 Prof, D2007 Prof.
BeitragVerfasst: Do 06.05.04 13:52 
Hi Forum,

weiß jemand, wie man eine in eine Email eigebettete Grafik anzeigen kann? Wenn ich die Mail mit einem Texteditor öffne,
dann kommt ein großer Block mit ASCII-Zeichen. Kann ich diese Daten irgendwie in ein TImage laden?

jjturbo

_________________
Windows XP: Für die einen nur ein Betriebssystem - für die anderen der längste Virus der Welt...
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 06.05.04 14:11 
wie hast du die mail denn vorliegen ?? als Datei oder holst du sie in deinem delphi proggi vom server ab oder was oder wie ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
jjturbo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 516

Win2000 prof., WinXP prof.
D4 Stand., D5 Prof, D7 Prof, D2007 Prof.
BeitragVerfasst: Do 06.05.04 14:18 
Sie liegt als ASCII-Datei vor, die man auch mehr oder weniger lesen kann. Sind halt diverse Steuerzeichen drin. Bestimmte Abschnitte erkennt man: "From, To, Subject" usw.
Am Ende des Textes ist ein großer Block mit der Grafik. Die würde ich gerne einlesen und anzeigen.

_________________
Windows XP: Für die einen nur ein Betriebssystem - für die anderen der längste Virus der Welt...
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 07.05.04 13:43 
also in emails sind datei anhänge immer in UniCode codiert. (verbessert mich wenns nicht so ist). das hiesst du musst dir diese textpassage ruassuchen und sie in dei bilddatei zurückverwandeln.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
jjturbo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 516

Win2000 prof., WinXP prof.
D4 Stand., D5 Prof, D7 Prof, D2007 Prof.
BeitragVerfasst: Fr 07.05.04 16:40 
wie/womit wandelt man diese Textpassage um? Gibt es eine Methode in TImage oder so was?

_________________
Windows XP: Für die einen nur ein Betriebssystem - für die anderen der längste Virus der Welt...
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Fr 07.05.04 17:17 
Erstmal womit holst du die Mail ab.
Dann, was ist es für eine Mail (text, html, rtf...)
Schätze mal html, dann sollte das Bild ebenfalls als Attachment vorliegen oder in base64 codiert in der Mail.
Dazu musst du dann die

Zitat:

Content-type: multipart/mixed;
Boundary="0__=4EBBE41EDFA477548f9e8a93df938690918c4EBBE41EDFA47754"
Content-Disposition: inline

auswerten


grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 08.05.04 09:04 
ups. nicht unicode sondern Base64 !! sorry für meinen fehler !

_________________
In the beginning was the word.
And the word was content-type: text/plain.