how pdo_sqlsrv can`t convert binary data to binary stream to show images on webpage?

Apr 15, 2012 at 12:44 PM

Hi, i need your help, please guide me  how to retrieve binary data from sql server 2008 R2  on web page by pdo_sqlsrv ?!!!

i could do it by sqlsrv not pdo_sqlsrv .... of course i wanted to show that image by 300*400 pixel but i don`t know how to do this work!!!!!

please help me to solve it

best regards

Apr 16, 2012 at 4:52 PM

Hi sogand145,

You should be able to use PDOStatement::bindColumn. Does it not work for you?

Thanks,

Jonathan

Apr 18, 2012 at 10:00 PM

Thank you so much dear jguerin for  your guidance, I finally was succeeded to do this work correctly and now I`m so happy :)

Thank you again

Best Wishes ;-)

Apr 18, 2012 at 11:11 PM

Glad you got it sorted out :)

Cheers,

Jonathan