When I call this web service I receive a byte array that contains an image.
The web page that calls the web service contains an Image object.
I need to display the mage. Here is my code. How do I retreive the image from the byte array and insert it into the Image object?
'Call Webservice to pass 3 parameters
Dim WS As New ImageRetreival.WS1.GetImage
Dim ImageDB As Byte()
ImageDB(0) = WS.RetreiveImageDB(userid, patientid, recordid)
Dim strfn As String = Convert.ToString(DateTime.Now.ToFileTime)
Dim fs As New FileStream(strfn, FileMode.CreateNew, FileAccess.Write)
fs.Write(ImageDB, 0, ImageDB.Length)
fs.Flush()
fs.Close()
Image1 = ????? / This is where I need help
The web page that calls the web service contains an Image object.
I need to display the mage. Here is my code. How do I retreive the image from the byte array and insert it into the Image object?
'Call Webservice to pass 3 parameters
Dim WS As New ImageRetreival.WS1.GetImage
Dim ImageDB As Byte()
ImageDB(0) = WS.RetreiveImageDB(userid, patientid, recordid)
Dim strfn As String = Convert.ToString(DateTime.Now.ToFileTime)
Dim fs As New FileStream(strfn, FileMode.CreateNew, FileAccess.Write)
fs.Write(ImageDB, 0, ImageDB.Length)
fs.Flush()
fs.Close()
Image1 = ????? / This is where I need help