How to show blob image coming from mysql in html using knockout js
628 views
Skip to first unread message
Harish Mohanani
unread,
Jul 23, 2015, 8:59:36 AM7/23/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to KnockoutJS, harishmo...@gmail.com
try to have a look at below link. you need to tweak to KO convention