<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Embed file into form</title><link>https://www.infopathdev.com:443/forums/thread/31239.aspx</link><pubDate>Thu, 07 Aug 2008 00:31:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31239</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31239.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31239</wfw:commentRss><description>&lt;p&gt;Oh -- I feel bad! I just saw that you had additional questions -- I&amp;#39;m sorry I didn&amp;#39;t see this earlier. Were you able to solve your issue? &lt;/p&gt;</description></item><item><title>Re: Embed file into form</title><link>https://www.infopathdev.com:443/forums/thread/29781.aspx</link><pubDate>Thu, 26 Jun 2008 04:57:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29781</guid><dc:creator>jaiminsarda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29781.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29781</wfw:commentRss><description>&lt;p&gt;Thanks for your response Hilary. In the second link, DocumentContainer is used. Check this line:&lt;/p&gt;&lt;pre&gt;&lt;b&gt;DocumentContainer myDocument;&lt;/b&gt;&lt;/pre&gt;&lt;p&gt;How can I get this?? Do I have to include any namespace or reference or something else??&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I need to know what can be done for the following scenario:&lt;/p&gt;&lt;p&gt;I have a infopath form along with file attachment control and a button. My requirement is using file attachment I have to upload a file from my local drive and on button click I have to zip it and attach it again to the same form, so that when some other user opens that form he should be able to see only an attached zip file.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I hope I am clear with my scenario.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;p&gt;Jaimin&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Embed file into form</title><link>https://www.infopathdev.com:443/forums/thread/29755.aspx</link><pubDate>Wed, 25 Jun 2008 15:31:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29755</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29755.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29755</wfw:commentRss><description>&lt;p&gt;Hello:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here are two different links that can get you started: &lt;a href="http://www.classdotnet.com/CsReadToByteArray.html"&gt;http://www.classdotnet.com/CsReadToByteArray.html&lt;/a&gt;&amp;nbsp;has a code sample that reads a file (like the one on your local drive) into a byte array. This post: &lt;a href="http://blogs.msdn.com/jannemattila/archive/2007/02/08/transferring-attachment-file-from-web-service-to-infopath.aspx"&gt;http://blogs.msdn.com/jannemattila/archive/2007/02/08/transferring-attachment-file-from-web-service-to-infopath.aspx&lt;/a&gt;&amp;nbsp;has a code sample for turning a byte array into a base 64 string. All you&amp;#39;ll need to do is get the node that is bound to your file attachment and set its value to the base 64 string that is returned from the method in the second post. If you need more help, please let me know.&lt;/p&gt;</description></item><item><title>Embed file into form</title><link>https://www.infopathdev.com:443/forums/thread/29728.aspx</link><pubDate>Wed, 25 Jun 2008 10:30:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29728</guid><dc:creator>jaiminsarda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29728.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29728</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;&lt;p&gt;can anybody tell me how to embed a file, which is in my local drive, into infopath form programmatically?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Jaimin&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>