I have to display image in form in my application, the image in a shared directory for every one in the server
If I attempt to read the image by:
fullImagePath = Path.Combine(@"\\serverIP\IMG_IN_server", imageFileName);
byte[] img = File.ReadAllBytes(fullImagePath);
but I get error "Access to the path is denied"
edit: can I use the user and the password to connect to avoid this problem ?