Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created November 6, 2011 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save einarwh/1343484 to your computer and use it in GitHub Desktop.
Save einarwh/1343484 to your computer and use it in GitHub Desktop.
Write base64-encoded response.
private static void WriteResponse(
HttpResponse response,
byte[] buffer)
{
response.ContentType = "plain/text";
response.Write(Convert.ToBase64String(buffer));
response.Flush();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment