asp.net - How to get binary to image from database using vb.net -


convert binary image using vb.net database. have stored images binary format in sql database. how retrieve value image using vb.net

bytes = ctype(dt.rows(0)("data"), byte()) imgprv.imageurl = bytes 

i suggest converting bytes base64 string , applying image url:

bytes = ctype(dt.rows(0)("data"), byte()) dim base64string string = convert.tobase64string(bytes, 0, bytes.length) imgprv.imageurl = "data:image/png;base64," & base64string 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -