<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FlexiCoder Blog &#187; ashx</title>
	<atom:link href="http://www.flexicoder.com/blog/index.php/category/ashx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexicoder.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 28 Jul 2010 15:11:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Render Image using Generic Handler ASP.Net</title>
		<link>http://www.flexicoder.com/blog/index.php/2009/01/render-image-using-generic-handler-aspnet/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2009/01/render-image-using-generic-handler-aspnet/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 11:27:00 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[C# 3.5]]></category>
		<category><![CDATA[ashx]]></category>
		<category><![CDATA[.Net code]]></category>
		<category><![CDATA[Image]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=24</guid>
		<description><![CDATA[The following code uses a property from an object that returns a byte array that contains an image.


public void ProcessRequest(HttpContext context)
{
    context.Response.ContentType = "image/jpg";
    if (context.Request.Params["Id"] != null)
    {
        Content selectedImage = new Content(Convert.ToInt32(context.Request.Params["Id"].ToString()));
      [...]]]></description>
			<content:encoded><![CDATA[<p>The following code uses a property from an object that returns a byte array that contains an image.</p>
<p><code>
<pre class="brush:c#">
public void ProcessRequest(HttpContext context)
{
    context.Response.ContentType = "image/jpg";
    if (context.Request.Params["Id"] != null)
    {
        Content selectedImage = new Content(Convert.ToInt32(context.Request.Params["Id"].ToString()));
        if (context.Request.Params["t"] == "D")
        {
            context.Response.OutputStream.Write(selectedImage.ImageDetails.FullImage, 0, selectedImage.ImageDetails.FullImage.Length);
        }
        else
        {
            context.Response.OutputStream.Write(selectedImage.ImageDetails.ThumbnailImage, 0, selectedImage.ImageDetails.ThumbnailImage.Length);
        }
    }
}</pre>
<p></code></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2009/01/render-image-using-generic-handler-aspnet/&title=Render+Image+using+Generic+Handler+ASP.Net&text=The+following+code+uses+a+property+from+an+object+that+returns+a+byte+array+that+contains+an+image.+++public+void+ProcessRequest%28HttpContext+context%29+%7B+++++context.Response.ContentType+%3D+%22image%2Fjpg%22%3B...&tags=selectedimage+imagedetails%2C+context+request%2C+context%2C+selectedimage" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2009/01/render-image-using-generic-handler-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
