<?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: Problem with decoding InfoPath attachments(MS Word documents).</title><link>https://www.infopathdev.com:443/forums/thread/48125.aspx</link><pubDate>Wed, 21 Oct 2009 21:54:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48125</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48125.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48125</wfw:commentRss><description>&lt;p&gt;Why are you trying to assign a byte array as a field value? InfoPath uses Base64Binary for files and images. I don&amp;#39;t follow why you are converting from base64 to begin with? If you are trying to dig into the innards of the file itself, then why bother assigning it to a field value instead of just working within the code?&lt;/p&gt;</description></item><item><title>Problem with decoding InfoPath attachments(MS Word documents).</title><link>https://www.infopathdev.com:443/forums/thread/48069.aspx</link><pubDate>Wed, 21 Oct 2009 00:49:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48069</guid><dc:creator>kalyan@infopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48069</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi all,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I have a problem here while working on decoding an InfoPath attachment in the VSTA code using this link.&amp;nbsp; &lt;a href="http://support.microsoft.com/kb/892730" title="Here"&gt;http://support.microsoft.com/kb/892730&lt;/a&gt;. This code is working fine for converting Base64binary into a byte array. But the problem here is, we can&amp;#39;t assign a byte array to a field in infopath form. For this, I need to convert this byte[ ] into a string to assign to a particula field in InfoPath. When ever i try to assign a string value, which is decoded from an &amp;quot;MS word&amp;quot; document attached to the infopath attachment control, it&amp;#39;s throwing an error &amp;quot;An invalid character was found in text content &amp;quot;.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; But the same concept is working fine for &amp;quot;notepad&amp;quot; files. If it is a word document or PDF, then it&amp;#39;s showing the string value in a different language like&amp;nbsp; &amp;quot;content = &amp;quot;PK \0 \0\b\0\0\0!\0???7f \0\0 \0\0 \0\b [Content_Types].xml ? (?\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\...&amp;quot;. &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; I have searched a lot on Web for the solution, unfortunately i didn&amp;#39;t get any. Eagerly waiting for a solution.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Kalyan. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>