Woke up and ran your code early in the morning, there is no problem, you can add pictures. The only thing to ask you is whether your S_PICTURE field data type is set to an OLE object?
The data type is set to OLE object!
QUERY4 is TQuery!
query4.sql->'select * from student'
Then open!
query4.open
Then add photos to the current record!