<?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>Lars Wilhelmsen &#187; WebHttpBinding</title>
	<atom:link href="http://www.larswilhelmsen.com/category/webhttpbinding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.larswilhelmsen.com</link>
	<description>Microsoft Connected Systems MVP</description>
	<lastBuildDate>Tue, 22 Jun 2010 08:24:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Serve PDF as inline attachments &#8211; WCF REST style</title>
		<link>http://www.larswilhelmsen.com/2008/07/09/serve-pdf-as-inline-attachments-wcf-rest-style/</link>
		<comments>http://www.larswilhelmsen.com/2008/07/09/serve-pdf-as-inline-attachments-wcf-rest-style/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 20:05:42 +0000</pubDate>
		<dc:creator>larsw</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[WebHttpBinding]]></category>

		<guid isPermaLink="false">http://larsw.wordpress.com/2008/07/09/serve-pdf-as-inline-attachments-wcf-rest-style/</guid>
		<description><![CDATA[Some time ago, a user with the nickname refaeldakar asked in the WCF/MSDN forum how he could serve PDFs with the WebHttpBinding so that where shown as inline attachments in the web browser. I wrote a small test application that did what he asked for. The trick here is to add an extra HTTP header [...]]]></description>
			<content:encoded><![CDATA[</p>
<p>Some time ago, a user with the nickname <a href="http://forums.microsoft.com/MSDN/User/Profile.aspx?UserID=151152&amp;SiteID=1" target="_blank">refaeldakar</a> <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3428819&amp;SiteID=1" target="_blank">asked</a> in the WCF/MSDN forum how he could serve PDFs with the WebHttpBinding so that where shown as inline attachments in the web browser.</p>
<p>I wrote a small test application that did what he asked for. The trick here is to add an extra HTTP header to the outgoing response to the web browser; <strong>Content-disposition: “inline; filename=filenamehere.pdf&quot;</strong>.</p>
<p>The code can be found on <a href="https://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=WCFResources&amp;ReleaseId=1271" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larswilhelmsen.com/2008/07/09/serve-pdf-as-inline-attachments-wcf-rest-style/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
