您好我想从webservice下载图片,我将此代码用于webservice:
<WebMethod()> _
Public Function RC_GetImages(Code As Int32) As [Byte]()
Dim ConSqlhi As New SqlConnection(My.Settings.connecttolocal)
Dim cmd As New SqlCommand()
cmd.Connection = ConSqlhi
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "GetImage"
Try
cmd.Parameters.Add("@code", SqlDbType.Int).Value = Code
Dim dr As SqlDataReader = cmd.ExecuteReader()
dr.Read()
Dim ar As [Byte]() = DirectCast(dr(1), [Byte]())
dr.Close()
cmd.Dispose()
Return ar
Catch ex As Exception
Dim a As [Byte]()
Return a
Exit Function
End Try
ConSqlhi.Close()
End Function
我不知道怎样才能在android中获得这个图像 所以有人可以帮我这个吗? image在我的数据库中,我从存储过程中获取它