why my photo can't be displayed in web?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luofeiyu
    New Member
    • Jul 2011
    • 18

    #1

    why my photo can't be displayed in web?

    there is a photo in c:/workspace/abbr.jpg.
    Code:
    <html>
    <body>
    
    <img src="file:\\c:/workspace/abbr.jpg" alt="Smiley face" width="42" height="42">
    
    </body>
    </html>
    why it can not be displayed in the screen?
    Attached Files
    Last edited by Rabbit; Jan 6 '14, 04:37 PM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.
  • Exequiel
    Contributor
    • Jul 2012
    • 288

    #2
    your source is wrong, try this one. file:///C:/workspace/abbr.jpg

    Comment

    • Rabbit
      Recognized Expert MVP
      • Jan 2007
      • 12517

      #3
      Note that this will only work if you open the file locally... remote clients will try to access that file from their local C drive, not yours.

      Comment

      • sudhakar1
        New Member
        • Jan 2014
        • 15

        #4
        Hi,
        You create a your image url link path is wrong so set this
        <img src="file://c:/workspace/abbr.jpg" alt="Smiley face" width="42" height="42">

        your create \\ like this its can't link your page.
        you should use // in symbol only...

        Comment

        Working...