thanks F.P.
I See,
but if the file is more than 1 GB, That will cost my
too mush disk free space,I am confuse on this problem,
because I must add Form Field Value information on the
Head of the data and boundary end of data.it will be
work by ContentTypePost="multipart/form-data" mothod
post.
--
ROTECTED]> 說:
> You don't need any buffers to create yourself.
>
> just use
> HttpCli.SendStrem:= TFileStream.Create('your
> file', fmOpenRead)
> HttpCli.SendStream.Position:= 0;
> HttCli.PostAsync;
>
> Paul
>
>
> - Original Me
ning);
--- Paul <[EMAIL PROTECTED]> 說:
> You should use a TFileStream instead of a
> TMemorystream.
>
> Paul
>
>
>
> - Original Message -
> From: "Opqrst Ghrst" <[EMAIL PROTECTED]>
> To: "ICS support mailing"
> Sent:
Hello all,
when I use Http Post Web to send file,
if the file is bigger as 100mb.
because content must has some FormField to post,
I use MemorrStream write these information and
FileStream.
when I load to TMemoryStream it will cause my computer
slow to build MemoryStream, can I use other mothods
hello,
thanks to reply.
but by my test, if my cpu not slow when I use buffer
32kb to send 50MB file only cost 13Mins,
with 8kb it must cost almost 20Mins.
It not always can up to max speed, but maybe better
for slow cpu works.
--- Francois Piette <[EMAIL PROTECTED]> 說:
> Actully, the buffer
> time I cannot complier. It seems these two
> object
> >> > cannot use the same time.
> >>
> >> Strange. But easy solution: use only THttpCli !
> >> I can't help you more if you don't tell the error
> >> message you get. The
> >> compiler alway
> message you get. The
> compiler always give error messages which give an
> incredible help to solve
> problems. Seems you are neglecting those messages
> :-(
>
> --
> [EMAIL PROTECTED]
> http://www.overbyte.be
>
>
> - Original Message -
> Fr
Thanks for your reply.
I try use TIdhttp it can send with packet 32768 size.
But when I use this Object and HttpCli at the same
time I cannot complier. It seems these two object
cannot use the same time.
--- Francois PIETTE <[EMAIL PROTECTED]> 說:
> > Q1:
> > I set HttpCli1->CtrlSocket->BufSize=3
Q1:
I set HttpCli1->CtrlSocket->BufSize=32768
,but when I send data it only has Max BufSize 8193.
How can I set it more than 8193 and has it Max limit?
Q2:
Dose HttpCli1->SendStream has Size limit?
When I send more than 100MB file, It seems not works.
___
YM -