-4

I am trying to load an image which is there in my local system.

if i give path "C:\Mashreq\BGImages\Jellyfish.jpg" it's not loading.

Getting error file:///C:/Mashreq/BGImages/Jellyfish.jpg not found in network.

Please check the below code.

<img ng-src="C:/Mashreq/BGImages/Jellyfish.jpg" class="img-responsive" style="width:100%" alt="Image">
4
  • 1
    C:/Mashreq/BGImages/Jellyfish.jpg is not valid. You should serve assets through http or https protocols... you can serve files from file:// but this will work only for your machine... Commented Aug 31, 2017 at 11:13
  • possibly you must look at this -> stackoverflow.com/a/4090736/5323912 Commented Aug 31, 2017 at 11:13
  • 4
    Possible duplicate of Why can't I do <img src="C:/localfile.jpg">? Commented Aug 31, 2017 at 11:14
  • stackoverflow.com/a/37223277/8317956 Commented Aug 31, 2017 at 11:17

1 Answer 1

-1

Please check the permission for that directory.

In your case you are using "C:/Mashreq/BGImages" folder path. Please make sure you have access for that path or that image.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.