For the previous error you can try changing this line to:
set pictureBox1::Image to o as type System.Drawing.Image
What database are you using?
Open up the Samples Browser under the Visual COBOL start menu and click on SQL on the left had side and then select and open up the managed LOB Data Types example. This shows how you can store an image field in a SQL database using OpenESQL.