<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: How to PUT binary data with REST?</title>
	<atom:link href="http://www.codemonkeyism.com/archives/2008/02/25/how-to-put-binary-data-with-rest/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codemonkeyism.com/archives/2008/02/25/how-to-put-binary-data-with-rest/</link>
	<description>Programming is hard</description>
	<pubDate>Sat, 22 Nov 2008 07:50:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: stephan</title>
		<link>http://www.codemonkeyism.com/archives/2008/02/25/how-to-put-binary-data-with-rest/#comment-58422</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Wed, 27 Feb 2008 08:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2008/02/25/how-to-put-binary-data-with-rest/#comment-58422</guid>
		<description>@Leonard: Thanks for your reply. Yes, a POST would do as well instead of a POST and PUT.

I wasn't clear though, I have the need to add several images to one resource (e.g. different sized images or different quality). Use a POST and several PUTs? How do I add meta information like the file name, people in the picture etc which should go with the pictures?</description>
		<content:encoded><![CDATA[<p>@Leonard: Thanks for your reply. Yes, a POST would do as well instead of a POST and PUT.</p>
<p>I wasn&#8217;t clear though, I have the need to add several images to one resource (e.g. different sized images or different quality). Use a POST and several PUTs? How do I add meta information like the file name, people in the picture etc which should go with the pictures?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://www.codemonkeyism.com/archives/2008/02/25/how-to-put-binary-data-with-rest/#comment-58403</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Wed, 27 Feb 2008 06:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2008/02/25/how-to-put-binary-data-with-rest/#comment-58403</guid>
		<description>Thanks, that's what I currently do with REST, doesn't look nice though. Not sure how it scales.</description>
		<content:encoded><![CDATA[<p>Thanks, that&#8217;s what I currently do with REST, doesn&#8217;t look nice though. Not sure how it scales.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Carreira</title>
		<link>http://www.codemonkeyism.com/archives/2008/02/25/how-to-put-binary-data-with-rest/#comment-58309</link>
		<dc:creator>Jason Carreira</dc:creator>
		<pubDate>Tue, 26 Feb 2008 17:51:06 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2008/02/25/how-to-put-binary-data-with-rest/#comment-58309</guid>
		<description>Base64 encoded and embedded as a CDATA block is what I'm using for an app right now... It's not for REST web access though.</description>
		<content:encoded><![CDATA[<p>Base64 encoded and embedded as a CDATA block is what I&#8217;m using for an app right now&#8230; It&#8217;s not for REST web access though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonard</title>
		<link>http://www.codemonkeyism.com/archives/2008/02/25/how-to-put-binary-data-with-rest/#comment-58275</link>
		<dc:creator>Leonard</dc:creator>
		<pubDate>Tue, 26 Feb 2008 13:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2008/02/25/how-to-put-binary-data-with-rest/#comment-58275</guid>
		<description>As co-author of the "bible" I respectfully ask you to reconsider "declare the binary object a resource and PUT binary data into it." Look at what AtomPub does (specifically, look at pages 279-280 of RWS; I don't like the way RFC 5023 explains it). An AtomPub member can have two representations: an Atom entry containing metadata, and a binary document containing data. They're different representations of a single resource, served from different URLs.

The fact that you need two media types is usually a sign that you've either got two resources or two different representations of a resource. If this doesn't work for whatever reason, I'd probably go with MIME multipart.</description>
		<content:encoded><![CDATA[<p>As co-author of the &#8220;bible&#8221; I respectfully ask you to reconsider &#8220;declare the binary object a resource and PUT binary data into it.&#8221; Look at what AtomPub does (specifically, look at pages 279-280 of RWS; I don&#8217;t like the way RFC 5023 explains it). An AtomPub member can have two representations: an Atom entry containing metadata, and a binary document containing data. They&#8217;re different representations of a single resource, served from different URLs.</p>
<p>The fact that you need two media types is usually a sign that you&#8217;ve either got two resources or two different representations of a resource. If this doesn&#8217;t work for whatever reason, I&#8217;d probably go with MIME multipart.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
