Thanks Theo,

I already thought about that, much easier indeed would be to make Document a
writeable property.

But...

I did'n want to break the HTTPsend object in that way, because any update
would force me to insert my changes again. 

So I would like to ask the question to Lukas - is it possible to have some
methods virtual and some properties writeable in the next version of
HTTPsend?
This could encourage more people to extend the objects for own purposes
without having to change basic code of the original object. 

In the meantime - I think - I will make Document a writeable property and
try it this way.


Regards

Thomas.

-----Ursprüngliche Nachricht-----

Thomas Kerkmann schrieb:
> I want to receive huge files via HTTP, using HTTPsend object.
> These files are encrypted, and I thought I could decrypt them while 
> receiving, using an own stream write method in the receiving stream.
>
> Unfortunately the Document property is read only, so I can not insert 
> my own stream here.
> But I think it would be very unperformant to receive some 2..5 Gbytes 
> into a Memory stream and then copy/decrypt it into a file stream.
>
> Anyone has ever tried some kind of this ?
>
> Any hints appreciated.
>
>   
I've never done this. But two ways come to my mind:

A:  You could probably use RangeStart / RangeEnd to only read a part of the
file to Memory at a time.
B:  Make a descendant of THTTPSend and Override  HTTPMethod(..) to fit your
needs or define fDocument as TFileStream or....

Just ideas, not sure how easy it is.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to