I have an HTML input which accepts jpg files and I am using NodeJS.They get sent to my MySQL as a BLOB.If I try to display them in any way, only the name of the image gets returned, not the base64/binary(?) that is needed to display them on the website. connection.query(`SELECT image FROM image`, function(error,result){ *something* } (I tried switching from img to h1 to maybe see if it would work but it only gave me the filename) <% }) %> name="base64image" /> In MySQL, if I rightclick the blob and "Open value in viewer", I can see the binary and text(name) of the image.How do I show the image properly?Thank you.(There are a million questions like this, but they are for PHP)
Submitted March 02, 2018 at 05:14PM by khazha88
No comments:
Post a Comment