2). Then the main code is written in vb.net . Bellow code is use to convert the image into byte and the send it to the database to store.
Convert the image and send it to database:
3). to retrieve the image from the database and display in the Picture Box .below code is responsible for display the picture in picture box. The main function of code is to retrieve the data in bytes and convert it to a normal image and display it.