Buffer=c.GetBlob("bitid")
input.InitializeFromBytesArray(Buffer,0,Buffer.Length)
Dim bitmap1 As Bitmap
bitmap1.Initialize2(input)
input.Close
'Which ever side you want to keep, needs to be the smaller of the two values. For example, if you want to resize to a width of 640 and have
'the height calculated, then the height must be larger then the width.
'Here we have a fixed width of 640 and have the system calculate the proper height
bitmap1 = bitmap1.Resize(640, 700, True)
'The line below would be used if you want the height to be 400 and have the system calculate the width
'bitmap1 = bitmap1.Resize(600, 400, True)
imageview1.Bitmap=bitmap1
imageview1.Gravity = Gravity.CENTER