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

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -