Using Images On Database Become Bannerslider On Yii

I had uploaded images on database and now i want to use those images become the banner slider. How to do that with Yii framework? please help me.

This is the original code:


$image_url = Yii::app()->baseUrl . '../images/wowslider/'    

$image_arr[] = array(

   'title' => 'Bream bay', 

   'desc' => 'Bream Bay From The Brynderwyn Ranges', 

   'image' =>$image_url.'bream_bay.jpg');

Uploaded to database as BLOB ?

or

to folder?

Thanks for reply, I had uploaded to folder in webroot

Okay. thats better approach.

Quite better approach…it has helped me too…