Board index » delphi » How to insert a big exe file into a Blob Field in SQL Server 6.5

How to insert a big exe file into a Blob Field in SQL Server 6.5

How to insert a big exe file into a Blob Field in SQL Server 6.5
Thx!

JSG

 

Re:How to insert a big exe file into a Blob Field in SQL Server 6.5


Quote
On Thu, 2 Sep 1999 11:36:19 -0400, "Tech" <tech3...@videotron.ca> wrote:
>How to insert a big exe file into a Blob Field in SQL Server 6.5
>Thx!

One way would be with the TBlobField.LoadFromFile method.

  (Query1.Fields[44] as TBlobField).LoadFromFile('e:\thefile.exe');

Or, you could create a TfileStream object to represent the binary file.
Then use the TBlobField.LoadFromStream method to copy from file stream to
BLOB field.

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Steve Koterski              "Health nuts are going to feel stupid someday,
Felton, CA                  lying in hospitals dying of nothing."
                                                              -- Redd Foxx

Other Threads