Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi TIdMultipartFormDataStream; Bild via post übertragen (https://www.delphipraxis.net/147354-tidmultipartformdatastream%3B-bild-via-post-uebertragen.html)

Klaus01 6. Feb 2010 17:43

Re: TIdMultipartFormDataStream; Bild via post übertragen
 
Zitat:

Zitat von DaveRidge
Ich hol mir gleich vom Kumpel die 2009er version.

?????

DaveRidge 6. Feb 2010 17:47

Re: TIdMultipartFormDataStream; Bild via post übertragen
 
Zitat:

Zitat von Klaus01
Zitat:

Zitat von DaveRidge
Ich hol mir gleich vom Kumpel die 2009er version.

?????


Ja, Delphi 2009. Er hat sie sich gestern gekauft

Klaus01 6. Feb 2010 18:10

Re: TIdMultipartFormDataStream; Bild via post übertragen
 
Zitat:

Zitat von DaveRidge
Zitat:

Zitat von Klaus01
Zitat:

Zitat von DaveRidge
Ich hol mir gleich vom Kumpel die 2009er version.

?????


Ja, Delphi 2009. Er hat sie sich gestern gekauft

Ja, er hat sie sich gekauft.
Wenn das eine Version ist die jeder installieren darf, hätte ich sie auch gerne.

Grüße
Klaus

DaveRidge 6. Feb 2010 18:32

Re: TIdMultipartFormDataStream; Bild via post übertragen
 
Man kann sie sich installieren und dann testen. Ist dann eine Demo version.

Ich werd erstmal schau wie die ist. Ich brauch so oder so mal eine neue Version Delphi 6 ist ja schon etwas älter

MfG Dave

DaveRidge 6. Feb 2010 20:34

Re: TIdMultipartFormDataStream; Bild via post übertragen
 
Also ich hab mit Delphi2009 jetzt zwar die Postmethode hinbekommen, nur der Upload will noch nicht.
Der code:

Delphi-Quellcode:
var
//  stream: TIdMultipartFormDataStream;
  Input:TStringList;
  Output:TStringStream;
begin
  Input := TStringList.Create;
//if not OpenDialog1.Execute then Exit;
//ProgressBar1.Min := 0;
//  stream := TIdMultipartFormDataStream.Create;

  try
  Input.Values['user']:=Form1.Edit1.Text;
  Input.Values['passwort']:=Form1.Edit2.Text;
  Input.Values['Datei']:=; //Wie bekommw ich jetzt hier das Bild rein????
  Input.Values['mode1']:='p';
  Input.Values['mode2']:='1';
  Input.Values['mode3']:='f';
  Input.Values['schreiber']:='igge';
  Input.Values['usersbook']:='na du, wer sonst';
  Input.Values['text']:='MMh, maln Test';


//  stream1.AddFile('$bild_2=',OpenDialog1.FileName,'jpg');
  Memo1.Text:=IdHTTP1.Post('http://www.blablabl.de/php.php',Input);
finally
  stream.Free;
   end;
end;
Ist zwar ein bissel durcheinander, weil ich noch nicht weiss wie ich das ausführen soll.
Kann mir da einer helfen?


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:22 Uhr.
Seite 2 von 2     12   

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