When I do the following: Dim fs As New IO.FileStream(filname, IO.FileMode.Open) I get a permissions error.
Dim fs As New IO.FileStream(filname, IO.FileMode.Open) I get a permissions error.
But when I do Bitmap.FromFile(filename) it works fine. This appears to be a pretty simple problem but I cannot figure it out. I modified the permissions and even tried to give everyone access to see if that helped, but it didnt. All file extensions are defined in the application config of IIS 5 for the site.
Files are in the same directory. Thanks in advance.
Thanks in advance.
Dim fs As New IO.FileStream(filname, IO.FileMode.Open, IO.FileAccess.Read)
Without that last IO.FileAccess.Read it must open the file stream in write mode by default.
Thanks anyways...