****** Editing a post for a newer code sample based on comments *******
So, to be clear, I have two files. The first file is called FinalImage.aspx, and here is the code for this page:
<html> <body> <img src="newpage.aspx" /> </body> </html>
newpage.aspx has the following code based on Jason's example in the comments below:
<%@ Page Language="C#" %> <script runat="server" language="c#"> protected void Page_Load(object sender, EventArgs e) { Response.ContentType = "image/png"; byte[] data = System.IO.File.ReadAllBytes("http://mystatus.skype.com/smallclassic/eric-greenberg"); Response.OutputStream.Write(data, 0, data.Length); Response.OutputStream.Flush(); Response.End(); } </script>
If I call FinalImage.aspx, I see a broken image.
If I call newpage.aspx directly, I get a "URI Formats unsupported error"
I think this is close.
In addition, for those who simply read this, this solution is necessary to get around the fact that skype does not have the https option for its skype buttons, which report the status of the skype user. Creating this proxy page will allow you to work without causing a "mixed" security warning in your browser.
ericgr
source share