Skip to content

Displaying images stored outside Website Root Folder in ASP

Mohammad Aman

Mohammad Aman

Asked Jul 6, 2015, 2:00 AM EDT1 answer
Share
LinkedInX
Displaying images stored outside Website Root Folder in other website in asp.net. I want to display that image stored in other website.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Do you have the two websites (yours and the other website) on the same machine? Or on two different machines?
    Do you want to load the images on the server side (ASP.NET) or the client side (HTML-JavaScript)?
    Do you want to load the local images from disk?
    In general, if you have permission to read the folder that contains the images on the other website, you can get the image's path using the Server.MapPath(...) method.
    If the images formats are not web-friendly, you can convert them to web-friendly formats (JPEG, PNG, GIF, etc.) using a programming toolkit like leadtools.
    I found the following link that might help:
    0