Guest User

Untitled

a guest
Jan 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public class SignatureHandler : IHttpHandler
  2. {
  3.  
  4. public void ProcessRequest(HttpContext context)
  5. {
  6. int recordid = Convert.ToInt32(context.Request.QueryString["recordId"]);
  7. Movie movie = GetMovie(recordid);
  8. context.Response.ContentType = movie.ImageFileType;
  9. context.Response.BinaryWrite(movie.ImageFile.ToArray());
  10.  
  11. }
  12.  
  13. public bool IsReusable
  14. {
  15. get
  16. {
  17. return false;
  18. }
  19. }
  20. }
Add Comment
Please, Sign In to add comment