locked
Set image URl to some remote Image in windows 8 metro application

    Question

  • Hi ,

    i want to set image URL to some dynamic remote url like

    <img src="\\192.168.0.159\Sample\Chrysanthemum.jpg" id="sss" height="300" width="300" />

    But its not displaying any image.

    Thanks in advance,

    Monday, August 27, 2012 11:02 AM

Answers

  • Hi Sukesh,

    No you cannot do that.  You cannot access arbitrary file locations like that due to security restrictions.  Remember that apps run in a secure sandbox and access is under control of the user.

    You can use http://URIs depending if you are in a web context or not.  Can you explain your scenario as to why you need this?  There may be some alternatives you have not thought of.

    -Jeff


    Jeff Sanders (MSFT)

    Monday, August 27, 2012 5:57 PM
    Moderator