I'm trying to use the below code, two many things are trying to use the samei mage at once. How can I get this to work. Keep in ind I can't dispose oimage as in this code " EImageDisplay.Image = oImage" the image on the form is set to oimage. Any way to copy this image, to make it work with all the operations?
'* Get the response and read the stream
Dim oResponse As System.Net.WebResponse = LoginReq.GetResponse
Dim oStream As Stream = oResponse.GetResponseStream
Dim oStream2 As Stream = oResponse.GetResponseStream
Dim strRandom As String = Application.StartupPath & "/TEMP/RAN" & Rnd(2342343244) & ".jpg"
Dim ImageMD5 As String
Dim oImage As Image = Image.FromStream(oStream)
EImageDisplay.Image = oImage
ImageMD5 = IMGMD5(strRandom)