{"id":128,"date":"2010-10-31T18:26:07","date_gmt":"2010-10-31T22:26:07","guid":{"rendered":"http:\/\/wukenny.host-ed.net\/?p=128"},"modified":"2011-04-18T03:44:59","modified_gmt":"2011-04-17T22:44:59","slug":"pwsk-handler-ashx","status":"publish","type":"post","link":"http:\/\/kennywu.info\/?p=128","title":{"rendered":"PWSK- Handler.ashx"},"content":{"rendered":"<p>The Handler.ashx is used to dynamically return a image from a query string. Http handler is similar to regular web form, only faster (~10%, compare with web form) with less functionality.<br \/>\n<strong>IsReusable<\/strong> property is usually set to be true to reduce memory footprint and improve performance.<br \/>\nIn the sample application pictures are taken from a database. If one prefer to use file system instead then the handler can be changed to.<br \/>\n<code>HttpResponse r = context.Response;<br \/>\nr.ContentType = \"image\/png\";<br \/>\nr.WriteFile(\"Logo1.png\");<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Handler.ashx is used to dynamically return a image from a query string. Http handler is similar to regular web form, only faster (~10%, compare with web form) with less functionality. IsReusable property is usually set to be true to &hellip; <a href=\"http:\/\/kennywu.info\/?p=128\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-programing"],"_links":{"self":[{"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kennywu.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=128"}],"version-history":[{"count":1,"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":210,"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/posts\/128\/revisions\/210"}],"wp:attachment":[{"href":"http:\/\/kennywu.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kennywu.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kennywu.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}