Imag - database


I have a problem, I shoot an image in the database in a BLOB field.

Someone can give me an example of how I can do this. I want to appear an input field image in CActiveForm.

And then how can I get this image database and display it in view for example.

Thanks in advance.

Hello. Have you seen this wiki?

yes but this tutorial does not say what to put in the controller to record the image and also does not say how I will get the blob from the database. At least I do not understand. I’ve tried the code but not work for me.

thank you