ADOQuery1 - & gt; SQL - & gt; The Clear ();
ADOQuery1 - & gt; SQL - & gt; Add (" Select * from table where FID=241 ");
ADOQuery1 - & gt; The Open ();
ADOQuery1 - & gt; Edit ();
TBlobField * aaa=(TBlobField *) ADOQuery1 - & gt; FieldByName (" image field ");
Aaa - & gt; LoadFromFile (OpenPhoto - & gt; FileName);
ADOQuery1 - & gt; Post ();
(or file first put TMemoryStream * iLoadStream, again - & gt; LoadFromStream (iLoadStream); Too small file success, large file out of the question)
Breakpoint debugging in ADOQuery1 - & gt; Post (); A connection error, then and database disconnect often
CodePudding user response:
Is it database features, field has the limit?CodePudding user response:
Transmission timeout?CodePudding user response:
SQL server BLOB field support 2 gb of data, may be your table when the design limits the BLOB biggest 100 MB