Loading the images files from a directory

I am trying to access the jpeg images from a folder and I have mentioned the directory in the code. But it throws me the error that I have mentioned in the images below. Any suggestions to resolve this issue?