<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Regarding</title><link>https://www.infopathdev.com:443/forums/thread/56580.aspx</link><pubDate>Tue, 06 Jul 2010 21:33:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56580</guid><dc:creator>Ted Fitch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56580.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=56580</wfw:commentRss><description>&lt;p&gt;Hi Suhail,&lt;/p&gt;
&lt;p&gt;Have you seen our qRules product?&amp;nbsp; We have this feature as one of our commands (&amp;quot;SaveToSharePoint&amp;quot;) and it works great.&amp;nbsp; It works in either browser or client InfoPath forms, 2007 and 2010&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.qdabra.com/en/products/qRules.aspx"&gt;http://www.qdabra.com/en/products/qRules.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You probably will pay for the cost of the software once you use this in a single form!&lt;/p&gt;
&lt;p&gt;Ted&lt;/p&gt;</description></item><item><title>Regarding</title><link>https://www.infopathdev.com:443/forums/thread/56083.aspx</link><pubDate>Mon, 21 Jun 2010 21:06:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56083</guid><dc:creator>sk92u</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56083.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=56083</wfw:commentRss><description>&lt;p&gt;Hello Everyone,&lt;/p&gt;&lt;p&gt;

I have designed an Infopath 2007 form which is not browser compatible. So my requirement is to allow users to attach some JPG or other small files and when they hit &amp;#39;Save&amp;#39; button, all the attached files has to successfully  stored into a Sharepoint list. So I have gone through this article http://support.microsoft.com/kb/892730 and successfully store all the attached files to my local drive by changing 
&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;myDecoder.SaveAttachment(@&amp;quot;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;b&gt;&amp;lt;Path to save the file&amp;gt;&amp;quot;&lt;/b&gt;&lt;/i&gt;&lt;b&gt;&lt;i&gt;)     To myDecoder.SaveAttachment(@&amp;quot;c:\Files From Infopath&amp;quot;)&lt;/i&gt;&lt;/b&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;//Get a reference to the attachment node.
&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;IXMLDOMNode n = thisXDocument.DOM.selectSingleNode(&amp;quot;my:myFields/my:theAttachmentField&amp;quot;);&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;
//Get the text of the node.
&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;String theAttachment = n.text;
&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;if(theAttachment.Length &amp;gt; 0)
&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;{&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp; InfoPathAttachmentEncoding.Decoder myDecoder = new InfoPathAttachmentEncoding.Decoder(theAttachment);
	&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp; myDecoder.SaveAttachment(@&amp;quot;&lt;/b&gt;&lt;i&gt;&lt;b&gt;&amp;lt;Path to save the file&amp;gt;&amp;quot;&lt;/b&gt;&lt;/i&gt;&lt;b&gt;);
&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;}&lt;/b&gt;


&lt;/p&gt;&lt;p&gt;&amp;nbsp;But how do I modify the code to store it into a list as an attachment or watever......

&lt;/p&gt;&lt;p&gt;Can anyone direct me to proper code steps to store the attached files into a Sharepoint custom list.
&lt;/p&gt;&lt;p&gt;
Thanks,
&lt;/p&gt;&lt;p&gt;Suhail
&lt;/p&gt;</description></item></channel></rss>