How To Save & Diaplay Image Using Blob Datatype

Hii guys,

As i am new to the yii framework. I have tried various codes from forum to save image in blob field but unable to get output. Please also tell me how should be the database for storing image in mysql database.