Re: .NET to Delphi 7




"Rob Kennedy" <me3@xxxxxxxxxxx> wrote in message
news:3pertlF9t884U1@xxxxxxxxxxxxxxxxx
> Bob_? wrote:
>> I'm trying to upload a binary file via HTTP to a ASP.NET application on
>> the server. Using Indy HTTP I've used
>> * reqContent := TStringStream.Create(binFileName)
>
> Note that that creates a stream whose contents are a name of a file. Just
> a string. *Not* the contents of that file.
>
> If you want the contents of a file, use a TFileStream.
>
> --
> Rob

When I use the file stream in the HTTP request it doesn't work -- how do I
get it to work with Indy HTTP?


.



Relevant Pages

  • Re: indy example needed
    ... >I need an example of how to post a file using Indy http client to an ... >Indy http server and how to save it to the disk. ... As you have control of the client and the server, ... Tidhttp.post lets you send a stream, which could be a file stream. ...
    (comp.lang.pascal.delphi.misc)
  • Re: .NET to Delphi 7
    ... Bob_? ... server. ... Using Indy HTTP I've used ... reqContent:= TStringStream.Create ...
    (alt.comp.lang.borland-delphi)