id ftp server stream directly to database

Giganews Newsgroups
Subject: id ftp server stream directly to database
Posted by:  Maarten Bakker (m.j.bakk…@planet.nl)
Date: Thu, 17 Mar 2005

Hi,

I'm struggeling with this problem for a while now, but i'm not able to find
a solid solution.
I have a webcam that can send images to a ftpserver. I want to use the indy
component for this. I want to store the images directly to the database
without storing them to the harddrive first.
I have tried to capture the "VStream" in the IdFTPServer1RetrieveFile-event
but that only works when I save it to a file. In other words, I can't copy
that stream to my blob field, LoadFromStream simply does not work and
copying to a public stream neither. The stream remains empthy.

Does anyone have a solution for this problem?

Thanks in advance

Replies