Can I show images as data in datatables?
Can I show images as data in datatables?
mihir_parmar
Posts: 4Questions: 1Answers: 0
This discussion has been closed.
Answers
Of course you can do that, reffer to this example.
https://editor.datatables.net/examples/advanced/upload.html
Hey I refered the example.
But in my situation I am using mysql database and BLOB datatype to store image which evantually shows encoded data in database representation.
render: function ( data, type, row ) {
return '<img id="myImg" name="myImg" src="data:image/jpeg;base64,'+ data + '" height="50px">';
}