I'm working on a project where i need to upload images to a DB. The images could vary in size when being uploaded by the clients, but when inserted in the DB, they cannot be larger than 640x480. I went through the examples in the documentations, they all reference saving the images to the file system. I'm having a hard time doing the conversion to a bitmap, then to a GraphicImage, then back to a byte stream to insert in the DB. Loading the original UploadedFile into the DB is not an issue at all:
Dim FileBytes(PhotoFile.InputStream.Length - 1) As Byte
PhotoFile.InputStream.Read(FileBytes, 0, PhotoFile.InputStream.Length)
Any help would be appreciated,
-Sam