I'm a C++ programmer using Borland's C++ Builder 5. I'm working on a database application and its causing me serious grief right now...
I'm using a Paradox 7.0 table with the C++ Builder and I simply can't find a way to insert data into BLOBs. I also can't save or view pictures using the TDBImage VCL component either.My latest foiled attempt was trying to save an image to a BLOB field using what seems to be an iron-clad piece of code.
//-----------------------------------------
Table1->Edit();
Open->Execute();
String file=Open->FileName;
ShowMessage(file);
TBlobField *blob; blob=new (TBlobField);
blob->FieldName="Image";
blob->LoadFromFile(file);
Table1->Post();
//-----------------------------------------
On compiling this code failed, siting that the BlobField doesn't have the dynamic object allocation function or something.
I'm also unable to add an OCX contoller for an OLE2 component nor save it in its own BLOB field.
Please, anyone, come to my aid
:'(