L
Lloyd Sheen
Code is:
Using stream As Stream = New FileStream(jpgs(0), FileMode.Open)
img = Image.FromStream(stream)
End Using
If the file is read only then it fails. If I change the attribute it is ok.
Since I am just reading the file it seems strange or is there other
parameters that I can use to get around this?
I am using this code so that the program does not hold a reference to the
file after I set a picturebox image to the variable img.
Thanks
LS
Using stream As Stream = New FileStream(jpgs(0), FileMode.Open)
img = Image.FromStream(stream)
End Using
If the file is read only then it fails. If I change the attribute it is ok.
Since I am just reading the file it seems strange or is there other
parameters that I can use to get around this?
I am using this code so that the program does not hold a reference to the
file after I set a picturebox image to the variable img.
Thanks
LS