<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: File Transfer with WCF</title>
	<atom:link href="http://stefanoricciardi.com/2009/08/28/file-transfer-with-wcp/feed/" rel="self" type="application/rss+xml" />
	<link>http://stefanoricciardi.com/2009/08/28/file-transfer-with-wcp/</link>
	<description>On Software Development and Thereabouts</description>
	<lastBuildDate>Thu, 01 Jul 2010 08:28:24 +0200</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: stefanoricciardi</title>
		<link>http://stefanoricciardi.com/2009/08/28/file-transfer-with-wcp/comment-page-1/#comment-55</link>
		<dc:creator>stefanoricciardi</dc:creator>
		<pubDate>Wed, 07 Apr 2010 07:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://stefanoricciardi.net/?p=318#comment-55</guid>
		<description>Anton,
the scenario you are describing is similar to mine. I suggest you try the approach I suggested above and see whether it can help you.

I have been able to use streaming and to pass the parameters I needed once I switched to using Message Contracts. It&#039;s not that much more work to do than plain DataContracts.</description>
		<content:encoded><![CDATA[<p>Anton,<br />
the scenario you are describing is similar to mine. I suggest you try the approach I suggested above and see whether it can help you.</p>
<p>I have been able to use streaming and to pass the parameters I needed once I switched to using Message Contracts. It&#8217;s not that much more work to do than plain DataContracts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://stefanoricciardi.com/2009/08/28/file-transfer-with-wcp/comment-page-1/#comment-54</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Wed, 07 Apr 2010 06:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://stefanoricciardi.net/?p=318#comment-54</guid>
		<description>Hello Stefano!
Thank you for your reply.

 I need to transfer big files from client to service and back. On the service side I need to store it in DB.  For this purposes I use ORM that maps varbinary(MAX)  to byte[]. So it seems good to transfer files like byte[], but AFAIK, the best way for sending big files is streaming. But when I use stream I can&#039;t get it&#039;s length (throws exception) and as result I can&#039;t convert it to byte[]. Maybe you can suggest something.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hello Stefano!<br />
Thank you for your reply.</p>
<p> I need to transfer big files from client to service and back. On the service side I need to store it in DB.  For this purposes I use ORM that maps varbinary(MAX)  to byte[]. So it seems good to transfer files like byte[], but AFAIK, the best way for sending big files is streaming. But when I use stream I can&#8217;t get it&#8217;s length (throws exception) and as result I can&#8217;t convert it to byte[]. Maybe you can suggest something.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stefanoricciardi</title>
		<link>http://stefanoricciardi.com/2009/08/28/file-transfer-with-wcp/comment-page-1/#comment-52</link>
		<dc:creator>stefanoricciardi</dc:creator>
		<pubDate>Tue, 06 Apr 2010 20:08:12 +0000</pubDate>
		<guid isPermaLink="false">http://stefanoricciardi.net/?p=318#comment-52</guid>
		<description>Anton, 

have you tried the approach you outlined? What errors did you get?

I guess you are not interested in trying streaming since there are limitations on what the DataContract can be in this case, as highlighted at the top of my post.</description>
		<content:encoded><![CDATA[<p>Anton, </p>
<p>have you tried the approach you outlined? What errors did you get?</p>
<p>I guess you are not interested in trying streaming since there are limitations on what the DataContract can be in this case, as highlighted at the top of my post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://stefanoricciardi.com/2009/08/28/file-transfer-with-wcp/comment-page-1/#comment-51</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Tue, 06 Apr 2010 13:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://stefanoricciardi.net/?p=318#comment-51</guid>
		<description>Hello, Stefano!

Thank you for your articale!

Why I can&#039;t just simply use the following construction to transfer files:

 [DataContract]
 public class UserDataFile
    {

        private FileStream _toStore;
        private int _groupId;

        public UserDataFile(FileStream stream, int groupId)
         {
            ToStore = stream;
            GroupId = groupId;

         }

       [DataMember]
       public FileStream ToStore
        {
            get { return _toStore; }
            set { _toStore = value; }
        }

        [DataMember]
        public int GroupId
        {
            get { return _groupId; }
            set { _groupId = value; }
        }</description>
		<content:encoded><![CDATA[<p>Hello, Stefano!</p>
<p>Thank you for your articale!</p>
<p>Why I can&#8217;t just simply use the following construction to transfer files:</p>
<p> [DataContract]<br />
 public class UserDataFile<br />
    {</p>
<p>        private FileStream _toStore;<br />
        private int _groupId;</p>
<p>        public UserDataFile(FileStream stream, int groupId)<br />
         {<br />
            ToStore = stream;<br />
            GroupId = groupId;</p>
<p>         }</p>
<p>       [DataMember]<br />
       public FileStream ToStore<br />
        {<br />
            get { return _toStore; }<br />
            set { _toStore = value; }<br />
        }</p>
<p>        [DataMember]<br />
        public int GroupId<br />
        {<br />
            get { return _groupId; }<br />
            set { _groupId = value; }<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefano Ricciardi</title>
		<link>http://stefanoricciardi.com/2009/08/28/file-transfer-with-wcp/comment-page-1/#comment-25</link>
		<dc:creator>Stefano Ricciardi</dc:creator>
		<pubDate>Mon, 15 Mar 2010 12:51:44 +0000</pubDate>
		<guid isPermaLink="false">http://stefanoricciardi.net/?p=318#comment-25</guid>
		<description>Pathmini,

have you looked at http://stefanoricciardi.com/2009/10/02/file-transfer-with-wcf-part-ii/ ? There you can find a scheleton of the server implementation.</description>
		<content:encoded><![CDATA[<p>Pathmini,</p>
<p>have you looked at <a href="http://stefanoricciardi.com/2009/10/02/file-transfer-with-wcf-part-ii/" rel="nofollow">http://stefanoricciardi.com/2009/10/02/file-transfer-with-wcf-part-ii/</a> ? There you can find a scheleton of the server implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pathmini</title>
		<link>http://stefanoricciardi.com/2009/08/28/file-transfer-with-wcp/comment-page-1/#comment-23</link>
		<dc:creator>Pathmini</dc:creator>
		<pubDate>Sat, 13 Mar 2010 16:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://stefanoricciardi.net/?p=318#comment-23</guid>
		<description>Hello Stefano,

Could you please provide me the code file for File Upload Service. I would like to test it out and see..

Thanks.

Pathmini</description>
		<content:encoded><![CDATA[<p>Hello Stefano,</p>
<p>Could you please provide me the code file for File Upload Service. I would like to test it out and see..</p>
<p>Thanks.</p>
<p>Pathmini</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anita</title>
		<link>http://stefanoricciardi.com/2009/08/28/file-transfer-with-wcp/comment-page-1/#comment-22</link>
		<dc:creator>Anita</dc:creator>
		<pubDate>Fri, 02 Oct 2009 12:55:45 +0000</pubDate>
		<guid isPermaLink="false">http://stefanoricciardi.net/?p=318#comment-22</guid>
		<description>Excellent! Thank you</description>
		<content:encoded><![CDATA[<p>Excellent! Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefano Ricciardi</title>
		<link>http://stefanoricciardi.com/2009/08/28/file-transfer-with-wcp/comment-page-1/#comment-21</link>
		<dc:creator>Stefano Ricciardi</dc:creator>
		<pubDate>Fri, 02 Oct 2009 12:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://stefanoricciardi.net/?p=318#comment-21</guid>
		<description>Vinay,
see my latest &lt;a href=&quot;http://bit.ly/jSZc3&quot; rel=&quot;nofollow&quot;&gt;post&lt;/a&gt; for a rough implementation.</description>
		<content:encoded><![CDATA[<p>Vinay,<br />
see my latest <a href="http://bit.ly/jSZc3" rel="nofollow">post</a> for a rough implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefano Ricciardi</title>
		<link>http://stefanoricciardi.com/2009/08/28/file-transfer-with-wcp/comment-page-1/#comment-20</link>
		<dc:creator>Stefano Ricciardi</dc:creator>
		<pubDate>Fri, 02 Oct 2009 12:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://stefanoricciardi.net/?p=318#comment-20</guid>
		<description>Anita,
see my latest &lt;a href=&quot;http://bit.ly/jSZc3&quot; rel=&quot;nofollow&quot;&gt;post&lt;/a&gt; for a rough implementation.</description>
		<content:encoded><![CDATA[<p>Anita,<br />
see my latest <a href="http://bit.ly/jSZc3" rel="nofollow">post</a> for a rough implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefano Ricciardi</title>
		<link>http://stefanoricciardi.com/2009/08/28/file-transfer-with-wcp/comment-page-1/#comment-19</link>
		<dc:creator>Stefano Ricciardi</dc:creator>
		<pubDate>Fri, 02 Oct 2009 07:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://stefanoricciardi.net/?p=318#comment-19</guid>
		<description>Hi Anita,

unfortunately I cannot share the whole source code without violating the intellectual property of my company. I&#039;ll try to post a scheleton implementation of the UploadFile and Download file as soon as possible.</description>
		<content:encoded><![CDATA[<p>Hi Anita,</p>
<p>unfortunately I cannot share the whole source code without violating the intellectual property of my company. I&#8217;ll try to post a scheleton implementation of the UploadFile and Download file as soon as possible.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
