<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: need help for infopath attachment in SharePoint</title><link>https://www.infopathdev.com:443/forums/thread/51494.aspx</link><pubDate>Mon, 08 Feb 2010 10:19:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51494</guid><dc:creator>elizas</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51494.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=51494</wfw:commentRss><description>The following  example demonstrates how a file, uploaded through a file upload control is added as an attachment to a list item.
using (SPSite oSPsite = new SPSite(http://website Url/))
{
     using (SPWeb oSPWeb = oSPsite.OpenWeb())
      {
           oSPWeb.AllowUnsafeUpdates = true;
 
            // Fetch the List
            SPList list = oSPWeb.Lists[&amp;quot;MyList&amp;quot;];
 
            // Get the List item
            SPListItem listItem = list.GetItemById(1);
           
            // Get the Attachment collection
            SPAttachmentCollection attachmentCollection = listItem.Attachments;
 
            Stream attachmentStream;
            Byte[] attachmentContent;
 
             // Get the file from the file upload control
            if (this.fileDocAttach.HasFile)
            {
                     attachmentStream = this.fileDocAttach.PostedFile.InputStream;
                 
                     attachmentContent = new Byte[attachmentStream.Length];
 
                     attachmentStream.Read(attachmentContent, 0, (int)attachmentStream.Length);
 
                    attachmentStream.Close();
                    attachmentStream.Dispose();
 
                     // Add the file to the attachment collection
                     attachmentCollection.Add(this.fileDocAttach.FileName, attachmentContent);
            }
 
            // Update th list item
            listItem.Update();
 
            oSPWeb.AllowUnsafeUpdates = false;
       }
 }

http://www.mindfiresolutions.com/lp/sharepoint-development.htm</description></item><item><title>Re: need help for infopath attachment in SharePoint</title><link>https://www.infopathdev.com:443/forums/thread/38831.aspx</link><pubDate>Tue, 24 Feb 2009 08:55:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38831</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38831.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=38831</wfw:commentRss><description>&lt;p&gt;Hi Mr. Aram Azari and thank you for posting,&lt;/p&gt;
&lt;p&gt;You are right. Promoted properties for InfoPath forms don&amp;#39;t support images or attachments. I believe your error &amp;quot;The selected field cannot be prompted ...&amp;quot; should be &amp;quot;The selected field cannot be promoted...&amp;quot; please confirm. &lt;/p&gt;
&lt;p&gt;It sounds like you have the images and attachments under a separate repeating section (or separate fields). In other words, they are not part of some rich text field.&amp;nbsp;To promote these images and attachments - without using code as Anuma&amp;#39;s link&amp;nbsp;suggests -&amp;nbsp;you can use our &lt;a href="http://www.qdabra.com/en/products/download/qRulesTrial.aspx" target="_blank" title="qRules"&gt;free qRules v2.0 tool&lt;/a&gt; to upload them to a separate SharePoint document library. The InfoPath form uploads them using qRules which is a tool injected into yoru form. It replaces the images and attachments with a link. When you click on the link, the image or attachment is opened via the browser. That should meet your requirement!&lt;/p&gt;
&lt;p&gt;If you are using a rich text control and have images in it, it&amp;#39;s more complicated. Rich text controls in InfoPath use XHTML format. There is a &amp;quot;plaintext&amp;quot; option that allows you to promote the text portion of the rich text control but this won&amp;#39;t get you your images. To do that, you need to save the XHTML inner text to a database as a string and create a data view in SharePoint that displays the string stored in the database. We have a new feature in DBXL 2.4 (next version) that supports this, so if you need help you can send us e-mail and we can put you on the v2.4 beta plan. &lt;/p&gt;
&lt;p&gt;I hope this post was useful..&lt;/p&gt;</description></item><item><title>Re: need help for infopath attachment in SharePoint</title><link>https://www.infopathdev.com:443/forums/thread/38830.aspx</link><pubDate>Tue, 24 Feb 2009 08:15:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38830</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38830.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=38830</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you verify below link once.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/f2b78cee-4a47-4d05-b3af-60b376718717/"&gt;http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/f2b78cee-4a47-4d05-b3af-60b376718717/&lt;/a&gt;&lt;/p&gt;</description></item><item><title>need help for infopath attachment in SharePoint</title><link>https://www.infopathdev.com:443/forums/thread/38828.aspx</link><pubDate>Tue, 24 Feb 2009 06:02:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38828</guid><dc:creator>aram.azari</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38828.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=38828</wfw:commentRss><description>&lt;p&gt;Hi Patrick, 
Thanks for your reply.
I’ll try to explain my scenario as simply as I can. 
I want to design a news site in SharePoint in which news data has to be submitted via a news submit form. I first wanted to use an InfoPath form.
 All the news submitted in the SharePoint database has pictures and attachments. 
My problem with InfoPath form is when I want to publish my form in SharePoint as a content type, I can’t define the attachment field and it gives me this error: 
“The selected field cannot be prompted because its data type is not supported: base64binary”
Do you have any solutions or suggestions to resolve this problem?
We have a MOSS2007 and InfoPath 2007. 
Thank you
&lt;/p&gt;</description></item></channel></rss>