How to show blob image coming from mysql in html using knockout js

424 views
Skip to first unread message

Harish Mohanani

unread,
Jul 23, 2015, 8:59:36 AM7/23/15
to KnockoutJS
I making an ajax request to get the image blob data from mysql. I am getting the blob data in ajax. Then I am adding it to view model. Now from view model I am binding that blob data to img src attribute with data-bind="attr:{src:blob_data}". But its not showing the image. When i see in firebug it says value too long. If anybody knows how to solve this please help.

<img data-bind="attr:{src:blob_data}" />

Thank you

Ravindra Kumar

unread,
Jul 23, 2015, 10:57:34 AM7/23/15
to KnockoutJS, harishmo...@gmail.com
try to have a look at below link. you need to tweak to KO convention


hope it helps. 

Harish Mohanani

unread,
Jul 24, 2015, 12:35:11 AM7/24/15
to KnockoutJS, harishmo...@gmail.com
I am getting the image data from mysql database as string.
Reply all
Reply to author
Forward
0 new messages