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
Post a Comment