How to save the OleContainer content into MS Access database
Posted on 2003-02-27
I have a OleContainer and I want save this OleContainer content into MS Access blobfield.
When I update it I use following source:
TempStream := TMemoryStream.Create;
And when I load it
TempBlobStream := TBlobStream.Create(Query2.FieldByName('BLOB') as TBlobField , bmRead);
This source is working in Oracle and Interbase Corectly,
but if i want to use in MS Access it is not working.
For Example :
The OleContainer content a Excel file which size more than 0.5 Mbyte.
I get a next exception : "Access violation ... in modul "ole32.dll".. ".
If you know what is the problem Please answer this question.