Skip to content

Instantly share code, notes, and snippets.

@casparkleijne
Created July 26, 2010 19:57
Show Gist options
  • Save casparkleijne/491140 to your computer and use it in GitHub Desktop.
Save casparkleijne/491140 to your computer and use it in GitHub Desktop.
Response.Clear();
Response.ContentType = "image/jpeg";
string raw = File.ReadAllText("e:\\cybersecuritychallenge.txt");
byte[] imageBytes = Convert.FromBase64String(raw);
Response.BinaryWrite(imageBytes);
Response.End();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment