2014-03-20 16:28 GMT-03:00 Leonardo M. Ramé <[email protected]>:
[...]
> Silvio, here's the solution. Just create a Post handler, then save
> TheRequest.Content string as a TFileStream:
>
> procedure TIndex.Post;
> var
> lStream: TFileStream;
> begin
> lStream := TFileStream.Create('output.odf', fmCreate);
> try
> lStream.Write(TheRequest.Content[1], TheRequest.ContentLength);
> finally
> lStream.Free;
> end;
> end;
Oops, sorry for my confusion. Until then I had not understood the problem
hehe...
Michael is right, the Content property will get your buffer as stream! :)
--
Silvio Clécio
My public projects - github.com/silvioprog
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus