<?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: Create zip file in infopath</title><link>https://www.infopathdev.com:443/forums/thread/30421.aspx</link><pubDate>Mon, 14 Jul 2008 17:42:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30421</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30421.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30421</wfw:commentRss><description>&lt;p&gt;If you are satisfied that you are correctly generating and saving a .ZIP file, and that the saved file works as expected, then you are half way there.&lt;/p&gt;
&lt;p&gt;You will at this point, either convert the in-memory copy of the ZIP file (if possible) or read in the saved ZIP file as a binary, and then convert that to BASE64.&lt;/p&gt;
&lt;p&gt;Once you&amp;#39;ve got the binary ZIP file convert to Base64, you simply set this Base64 string as the value of the node to which you attachment control is bound.&lt;/p&gt;</description></item><item><title>Re: Create zip file in infopath</title><link>https://www.infopathdev.com:443/forums/thread/29909.aspx</link><pubDate>Mon, 30 Jun 2008 06:41:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29909</guid><dc:creator>jaiminsarda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29909.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29909</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;First I am attaching a file through file attachment control.&lt;/p&gt;&lt;p&gt;than on button click I am using &amp;quot;Convert.FromBase64String(fileName)&amp;quot; , where fileName is the encoded form of the attached file.&lt;/p&gt;&lt;p&gt;After this I am getting the file name as string and file contents as byte[].&lt;/p&gt;&lt;p&gt;For zip I am adding &amp;quot;Ionic.Utils.Zip&amp;quot; as reference , which is a dotnetzip library.&lt;/p&gt;&lt;p&gt;This are the lines I use to create a zip file:&lt;/p&gt;&lt;p&gt;....&lt;/p&gt;&lt;p&gt;ZipFile zip = new ZipFile();&lt;br /&gt;zip.AddFile(fileName);&lt;br /&gt;zip.Save(&amp;quot;C:\\ZipFiles\\Test.zip&amp;quot;);&lt;/p&gt;&lt;p&gt;...&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am getting the zip file as &amp;quot;Test.zip&amp;quot; . From here onwards the problem starts. How will I attach &amp;quot;Test.zip&amp;quot; to my infopath form??&lt;/p&gt;&lt;p&gt;plz correct me if my method is wrong and help me in meeting my requirements.&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><item><title>Re: Create zip file in infopath</title><link>https://www.infopathdev.com:443/forums/thread/29851.aspx</link><pubDate>Thu, 26 Jun 2008 22:02:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29851</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29851</wfw:commentRss><description>&lt;p&gt;You will need an API for creating a ZIP file... which, there might be a free one, or you might have to pay for one.&lt;/p&gt;
&lt;p&gt;Once you&amp;#39;ve created the ZIP in memory, convert it to a BASE64 string, and set that BASE64 string as the value of the node to which the attachment control is bound.&lt;/p&gt;</description></item><item><title>Create zip file in infopath</title><link>https://www.infopathdev.com:443/forums/thread/29714.aspx</link><pubDate>Wed, 25 Jun 2008 05:25:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29714</guid><dc:creator>jaiminsarda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29714.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29714</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi All,&lt;/p&gt;&lt;p&gt;I am using file attachment control in my infopath form. Using this control I am browsing to a file. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;can anybody tell me how to make that file as a zip file and embed it into the same infopath form?&lt;/p&gt;&lt;p&gt;I am using&amp;nbsp; infopath 2007 and programming language is C#.&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;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>