RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBlobField.SaveToFile Method

Saves the contents of the BLOB field to a file.

Pascal
procedure SaveToFile(const FileName: string);
C++
__fastcall SaveToFile(const AnsiString FileName);

Use SaveToFile to save the contents of the BLOB field to a file. Specify the name of the file as the value of the FileName parameter.

Query1Files.SaveToFile('c:\Data\' + Query1FileName.AsString);

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!