Here's a bit of code:
I've also tried LoadFromFile and AsBlob. The problem is as spPostImage.Execute runs, I get an Access violation at 0000000. I have started a transaction using the connection UniConnection.spPostImage.Prepare;
spPostImage.ParamByName( 'p_object_id' ).AsString := qryImagesobject_id.AsString;
spPostImage.ParamByName( 'p_name' ).AsString := qryImagesname.AsString;
spPostImage.ParamByName( 'p_image' ).LoadFromStream( strImage, ftBlob );
spPostImage.Execute;