title: How to display image that is located on another server on the network (ASP.NET)
body: <p>I've got a ASP.NET site that's located on a local server (MY_SERVER). And one of the things it does is pull up tiff files which are located on another server (ANOTHER_SERVER). The location of each of these files is stored in SQL. I pull up each of these images and am supposed to display them. The problem is:</p>
  
  <ol>
  <li><p>the files are not named with a tiff extension (does it matter?)</p></li>
  <li><p>they aren't displaying at all.</p></li>
  </ol>
  
  <p>I am using an Image control to display these images, and I'm not sure if it matters that the extension is not set (does the image control know the difference between an jpg and a tiff without the extension?)</p>
  
  <p>I am guessing the images aren't displaying because they are not on the same server MY_SERVER that the images are located (ANOTHER_SERVER). Any ideas on how to fix this?</p>
  
  <p>edit: actually displaying the tiff files were amazingly simple:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      Response.ContentType = "image/png";
      new Bitmap(Request.QueryString["ImagePath"]).Save(Response.OutputStream, ImageFormat.Gif);
  
  }
  </code></pre>
  
  <p>but because the images are located on ANOTHER_SERVER I still can't access them. I may just do a hack where I copy them to a local directory on MY_SERVER but there's gotta be a simple way to fix this. Anyone?</p>