<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/56176.aspx</link><pubDate>Thu, 24 Jun 2010 13:35:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56176</guid><dc:creator>elizas</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56176.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56176</wfw:commentRss><description>A list item in SharePoint can have multiple attachments.  Below is a code snippet in c#.Net to add an attachment to a list item programmatically.
This 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;

Sharepoint migration 2010
Sharepoint migration services</description></item><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/47703.aspx</link><pubDate>Thu, 08 Oct 2009 11:30:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47703</guid><dc:creator>Svetoslav</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47703.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=47703</wfw:commentRss><description>&lt;p&gt;Hello &lt;strong&gt;devlizard , &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;this is a very good post. I have a question reagrding a similar problem. I have a&amp;nbsp;template and number of forms in SharePoint, which has several attachments inside. The users ad files up to 20MB, which is extreme when it comes to submitting/ openening the form. As you may already now, it is very bothering. So i came with the idea, that I should separate the attachments from the form and post the required attachment in a separate library. Thus using links I can directly access the attachemt from the form. So I do not need decoding, since my &amp;quot;database&amp;quot; is still in testing mode. I only required a submitting technique to upload files to SP library&amp;nbsp; using a simple button from the IP form. According to me I have a big issue. I have been looking through all the possible methods and object in IP but I cannot find something appropriate. I am using IP2003 with JScript. This is the last issue and the project will go productive. So i really need some hints or a bit help! &lt;/p&gt;
&lt;p&gt;Thank you in advance! &lt;/p&gt;
&lt;p&gt;Regards, &lt;/p&gt;
&lt;p&gt;Svetoslav &lt;/p&gt;</description></item><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/29416.aspx</link><pubDate>Mon, 16 Jun 2008 17:41:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29416</guid><dc:creator>andyoye</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29416.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=29416</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;b&gt;Devlizard:&lt;/b&gt; Thanks, standing by for the package.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/29412.aspx</link><pubDate>Mon, 16 Jun 2008 14:41:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29412</guid><dc:creator>andyoye</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29412.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=29412</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Patrick: thanks, only issue is we use browser forms. Do you have a solution for browser enabled forms?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/29402.aspx</link><pubDate>Sun, 15 Jun 2008 19:40:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29402</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29402.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=29402</wfw:commentRss><description>&lt;p&gt;Hi all, &lt;/p&gt;
&lt;p&gt;I have posted our solution that does what devlizard suggests here: &lt;a href="http://www.infopathdev.com/files/folders/examples/entry29401.aspx"&gt;http://www.infopathdev.com/files/folders/examples/entry29401.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This solution shows how you can copy InfoPath attachments to SharePoint document library and convert the Base64 string attachment in your InfoPath form into a link to the uploaded SharePoint document. You will need to modify the URL in ViewOptions.xml to point to your SharePoint site&amp;#39;s document library. &lt;/p&gt;
&lt;p&gt;Note: this sample solution uses the taskpane to upload and convert the image attachments to SharePoint documents. This means that the form cannot be used in the browser.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please let me know if you find this useful. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/29398.aspx</link><pubDate>Sun, 15 Jun 2008 07:46:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29398</guid><dc:creator>devlizard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29398.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=29398</wfw:commentRss><description>&lt;p&gt;Ciao andyoye :-)&lt;/p&gt;
&lt;p&gt;I will definitely work on this, since I think it&amp;#39;s quite an interesting issue.&lt;/p&gt;
&lt;p&gt;I just have to find some free-time to package it all.&lt;/p&gt;
&lt;p&gt;So stay tuned :-)&lt;/p&gt;
&lt;p&gt;Ciao&lt;/p&gt;</description></item><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/29379.aspx</link><pubDate>Fri, 13 Jun 2008 13:21:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29379</guid><dc:creator>andyoye</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29379.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=29379</wfw:commentRss><description>&lt;p&gt;Can you provide a step by step (with code) detail how you achieved this? I have same issue of extracting the attached files and copy them to sharepoint doc lib or to a network share.&lt;/p&gt;&lt;p&gt;I tried to follow below links but...&lt;/p&gt;&lt;p&gt;http://knrs.blogspot.com/2007/11/upload-infopath-attachment-to-document.html&lt;/p&gt;&lt;p&gt;http://glorix.blogspot.com/2007_11_01_archive.html&lt;/p&gt;&lt;p&gt;Thanks a lot&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; &amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/29057.aspx</link><pubDate>Fri, 30 May 2008 06:45:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29057</guid><dc:creator>devlizard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29057.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=29057</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m glad you could solve your issues.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;And ... yes, InfoPath is sometimes quite &amp;quot;surprising&amp;quot; ... and also quite a powerful tool IMHO.&lt;/p&gt;
&lt;p&gt;Ciao&lt;/p&gt;</description></item><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/29056.aspx</link><pubDate>Fri, 30 May 2008 06:33:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29056</guid><dc:creator>Thomas2008</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29056.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=29056</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks a lot. &lt;/p&gt;&lt;p&gt;I have managed to archive the Infopath form and extract the attachment. It is really amazing to see the way the data and the attachments of the Infopath form is stored.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks again for all the support i received.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/28928.aspx</link><pubDate>Sat, 24 May 2008 07:02:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28928</guid><dc:creator>devlizard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28928.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28928</wfw:commentRss><description>&lt;p&gt;Attachments are not stored in the database, they are embedded as BASE64 strings inside the InfoPath XML document you create.&lt;/p&gt;
&lt;p&gt;They can be extracted (i.e. the BASE64 string can be decoded and the&amp;nbsp;file stream can be infered from that).&lt;/p&gt;
&lt;p&gt;Please note that IP adds a small header at the top of the decoded file stream.&lt;/p&gt;
&lt;p&gt;Here you can find a couple of code snippets that can help you get started about attachments endoding: &lt;a href="http://support.microsoft.com/kb/892730/en-us"&gt;http://support.microsoft.com/kb/892730/en-us&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you need to develop an application (not limited to Windows Applications) that is capable of extracting the attachments, you should load the IP XML and parse it, so that you can read and decode the attachment element.&lt;/p&gt;
&lt;p&gt;In a windows applications reading data from a SharePoint library, this means you need to get access to the library.&lt;/p&gt;
&lt;p&gt;You can use the SharePoint object model, but consider that it is limited to applications running on the SP server.&lt;/p&gt;
&lt;p&gt;Otherwise, you can use the SharePoint web services from any location.&lt;/p&gt;
&lt;p&gt;Also, you can write your own remote access layer, using the technology you prefer, and use the OM if you&amp;nbsp;run your layer on the server.&lt;/p&gt;
&lt;p&gt;HTH&lt;/p&gt;
&lt;p&gt;Ciao&lt;/p&gt;</description></item><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/28894.aspx</link><pubDate>Fri, 23 May 2008 13:44:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28894</guid><dc:creator>Thomas2008</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28894.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28894</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for the reply. I will definitely try to do this when i find time.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;My first question is &lt;/p&gt;&lt;p&gt;1. How is Infopath and the attachments stored in the database? What is the format of storage?&lt;/p&gt;&lt;p&gt;2. The items in my form library have an attachment embedded. I need to develop a Windows application that would download the attachments for a selected item. Any clue on how this could be done?&lt;/p&gt;&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/28854.aspx</link><pubDate>Wed, 21 May 2008 22:13:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28854</guid><dc:creator>devlizard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28854.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28854</wfw:commentRss><description>&lt;p&gt;Hi Thomas.&lt;/p&gt;
&lt;p&gt;During&amp;nbsp;a recent project I have been developing a solution that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Lets you add attachments to forms (also working on Broswer Forms)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Upon a triggered action (be it the submit event, or a subsequent implicit/explicit action on the form document from the sharepoint library it is stored inside) attachments are extracted and displaced into a specific document library&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Links to the added documents are then inserted as XML fields inside the form data&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Attachment stream are finally removed (so that the form file is kept small in size)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Moreover, you also get &amp;quot;for free&amp;quot; (well ... it took some day to fine tune this solution :-)) the document management features of SharePoint for form attachments, i.e. attachments are versioned, you can add metadata (and then sort, group, filter etc ...), you can have policies applied, you can enforce check-in and check-out ...&lt;/p&gt;
&lt;p&gt;So, if you have time to develop some code, I would stronlgy suggest you this approach.&lt;/p&gt;
&lt;p&gt;Please let me know if you have doubts or questions.&lt;/p&gt;
&lt;p&gt;HTH&lt;/p&gt;
&lt;p&gt;Ciao&lt;/p&gt;</description></item><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/28810.aspx</link><pubDate>Tue, 20 May 2008 08:43:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28810</guid><dc:creator>Thomas2008</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28810.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28810</wfw:commentRss><description>&lt;p&gt;
Thanks for the reply.

&lt;/p&gt;&lt;p&gt;This is an application already deployed in the production and the attachments are embedded into it. I think there is an option to copy / download the contents of the attachment byte by byte and store it into some file located in the server.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/28782.aspx</link><pubDate>Sat, 17 May 2008 01:50:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28782</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28782.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28782</wfw:commentRss><description>&lt;p&gt;This is not possible as the attached file ends up being embedded in the form and is not accessible without opening the form in InfoPath.&lt;/p&gt;
&lt;p&gt;The best alternative is to store the files you want in a seperate document library or database and then rather than attaching them, put hyperlinks in the form to them. Then I believe you can promote the links text&amp;nbsp;in Sharepoint and they would act as hyperlinks to the documents.&lt;/p&gt;
&lt;p&gt;So in the form just copy and paste the hyperlink in rather then attaching the file. The initial linkage takes a few more clicks but then you get what you are looking for on the backend.&lt;/p&gt;</description></item><item><title>Link to the attachment</title><link>https://www.infopathdev.com:443/forums/thread/28773.aspx</link><pubDate>Fri, 16 May 2008 18:30:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28773</guid><dc:creator>Thomas2008</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28773.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28773</wfw:commentRss><description>&lt;p&gt;I have a simple Infopath form that could have 1 or more attachments. In some view I need to&amp;nbsp;list out&amp;nbsp;the names of all the Infopath forms&amp;nbsp;and a link to the attachments of the respective forms. When the user clicks on the attachment they should be able to open the attachment without having to open the Infopath form.&lt;/p&gt;
&lt;p&gt;Please let me know if this is possible.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>