I need move an image from the image property of a picture box to a database and back again using VB.NET.
I've found a number of references showing how to do this. They each take a slightly different approach but all only work with Option Strict Off. When option strict is on they all result in an invalid cast exception.
Can someone provide the code to save and retrieve image data using VB.NET with option strict on? (I need a solution that does not involve writing the data to a separate file)