I'm using a postgresql 9.1 database, where a pdf file is stored in a large object field (oid). Now I want to show the pdf-file in a link where the user can click for watching it. I've searched a long time for doing this with Yii but without success.
I wondered if Yii bringing such stuff with it?
Or do I have to use the php pg_lo_open and pg_lo_read function itself? If so how can I get the database connection ressource needed by this functions (which normally will be returned from pg_connect function)? I thought about
Yii::app()->db->getPdoInstance()but this seems not the correct ressource.
Can anyone help me please?