This is the code to write Blob Data to a Blob Field (this works).
LOB := TLOBLocator.Create(BlobDataSet.Session, otBLOB);
MS:= TMemoryStream.Create;
MS.WriteComponent(Layout);
mssize := MS.Size;
SQL := ' INSERT INTO TBLLAYOUT '
+ ' ( ID , ... , LAYOUT, LAYOUTSIZE ) '
+ ' VALUES '...