Dim imgBytes1() As Byte = New Byte(1) {} imgBytes1 = CType(converter.ConvertTo(bmp1, imgBytes2.GetType()), Byte())