trichview.com

trichview.support




Re: DB field and LoadFromFile...


Return to index


Author

Message

Sergey Tkachenko

Posted: 06/26/2003 19:53:35


Just like loading any other file:


var Stream, FileStream: TStream;


table.Edit;


Stream := tbl.CreateBlobStream(tbl.FieldByName(FieldName), bmWrite);

FileStream := TFileStream.Create(FileName, fmOpenRead);

Stream.CopyFrom(FileStream, 0);

Stream.Free;

FileStream.Free;


table.Post;



> How I can load into the Database field RVF text from file directly?

>

>

> Thanks a lot.

>

> Oleg Mironov

> mirolex@rogers.com

>

>





Powered by ABC Amber Outlook Express Converter