Image uploading and Retrieval from DB2
问题 H! I'm trying to upload an image in a DB2 database. The image size is a JPG (6.76 kb - 6924 bytes). The database table has a BLOB field of length 1048576. My code to insert the image is as follows: If fileup.PostedFile IsNot Nothing AndAlso fileup.PostedFile.FileName <> "" Then Dim imagesize As Byte() = New Byte(fileup.PostedFile.ContentLength - 1) {} Dim uploadedimage1 As HttpPostedFile = fileup.PostedFile uploadedimage1.InputStream.Read(imagesize, 0, CInt(fileup.PostedFile.ContentLength))