> Thanks
>
> ms.Seek(0,0);
>
>>DisplayMemo.Lines.Add(ms.DataString);
>
>
> Works great. It looks like ms.Seek is quit important sometimes. In case of
> using TMemoryStream its needed, TStringStream not all the time.
this is a bit off-Topic, but when dealing with streams,
when a third party com
x27;) it's the same, seems like the var 'data'
has no meaning here.
Thanks for your help
Werner
- Oorspronkelijk bericht -
Van: "Guillaume MAISON" <[EMAIL PROTECTED]>
Aan: "ICS support mailing"
Verzonden: dinsdag, oktober 04, 2005 11:57
Onderwer
>
> I have a small file located on a FTP
> I want to read this file, line per line, and save this data direct to a
> local table.
> So I don't need to save this file first to disk, and read it again.
>
> I took a look at the localSteam property, and tried this example.
> The ms.Size give a number
> > I like to use ics ftp to transfer the contents direct to a table and not
save it first to disk
> > Could this be possible?
> > Now I'm saving to contents to a file on disk, then read the file and
save the contents to the
> table, wich is time comsuming.
> >
> > Now:
> >
> > 1.open the ftp
>
> I like to use ics ftp to transfer the contents direct to a table and not save
> it first to disk
> Could this be possible?
> Now I'm saving to contents to a file on disk, then read the file and save the
> contents to the
table, wich is time comsuming.
>
> Now:
>
> 1.open the ftp
> 2. read one o
Take a look at FtpCli's property LocalStream.
Don't forget that a transfer may fail.
Arno Garrels
Werner wrote:
> Hi
>
> I like to use ics ftp to transfer the contents direct to a table and not
> save it first to disk Could this be possible?
> Now I'm saving to contents to a file on disk, then r
Hi
I like to use ics ftp to transfer the contents direct to a table and not save
it first to disk
Could this be possible?
Now I'm saving to contents to a file on disk, then read the file and save the
contents to the table, wich is time comsuming.
Now:
1.open the ftp
2. read one or more files f