Autor Beitrag
>M@steR<
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 288
Erhaltene Danke: 3



BeitragVerfasst: Fr 17.06.05 15:19 
Gelöscht


Zuletzt bearbeitet von >M@steR< am Di 17.09.13 00:24, insgesamt 1-mal bearbeitet
blaueled
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 133

Win XP
D5
BeitragVerfasst: Sa 18.06.05 08:08 
Du musst dein Bild in einen Stream schreiben, und den dann versenden mit
ausblenden Quelltext
1:
tClientsocket1.socket.socket.SendStreamThenDrop(dein_stream);					

Dann musst du ihn mit im OnRead ereignis vom Server empfangen
ausblenden Quelltext
1:
Socket.ReceiveBuf(stream,sizeof(stream));					

Achtung, das wird mehrmals aufgerufen !
Deshalb erst weiterarbeiten, wenn die
Verbindung beendet wurde.

Guck dir nochmal das FAQ von O'rally an
www.delphi-forum.de/...erschicken_2632.html

Das funktionniert nicht gut, aber es geht.

Arne
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 18.06.05 08:33 
du kannst es aber auch mit den INDY kompos machen und dann mit dem SimpleTCP Warapper der hier bie den OpenSource Unts rumliegt. komfortabler kann man es kaum haben !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
>M@steR< Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 288
Erhaltene Danke: 3



BeitragVerfasst: Mo 20.06.05 15:54 
Gelöscht


Zuletzt bearbeitet von >M@steR< am Di 17.09.13 00:24, insgesamt 1-mal bearbeitet
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: So 26.06.05 10:33 
Bei den Indy-Demos ist auch eine Demo zum Versenden von Bildern drin.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 29.06.05 08:35 
Titel: Indy
Und wie mache ich das Bild zu einem Stream? Und wo krieg ich die indy demos her?
HolgerB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 91

Win XP
D6 Pers
BeitragVerfasst: Mi 29.06.05 09:03 
Hallo,
versuches mal damit.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
try
  S := TMemorystream.Create;
  Bitmap.SavetoStream(s);
  ...{stream verscicken}
finally
  s.free;
end


Nicht getestet. Details weiss die OH.

Gruß
Holger

Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Mi 29.06.05 11:06 

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)