Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Datei Upload, 'buffer start position invalid' (https://www.delphipraxis.net/80797-datei-upload-buffer-start-position-invalid.html)

R0BIN 15. Nov 2006 14:10


Datei Upload, 'buffer start position invalid'
 
hi,


ich versuche mittels

Delphi-Quellcode:
procedure TForm3.Button1Click(Sender: TObject);
var
  Data: TIDMultiPartFormDataStream;
begin
  Data := TIdMultiPartFormDataStream.Create;
  try
    data.AddFile('archive', edit5.text, 'application/jpeg');
    data.Position := 0;
    ShowMEssage(IdHTTP1.Post('http://localhost/upload.php', Data));
  finally
    Data.Free;
  end;
end;
eine Datei hochzuladen, doch er sagt mir immer das buffer start position invalid sei, woran kann das liegen?


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:37 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