AnsweredAssumed Answered

Add Attachment to list service

Question asked by omar.taha on May 8, 2016
Latest reply on May 21, 2016 by omar.taha

Hello,

 

I'm trying to add attachments from task list to the related list item, I'm using the service _vti_bin/Lists.asmx and the method GetAttachmentCollection , it returns the xml of the attachments from the task form, What I need is to get the base64 binary code from the urls of the attachments so I can use the method AddAttachment , this method takes the parameters:

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/">

  <soap:Header>

  </soap:Header>

  <soap:Body>

    <m:AddAttachment>

      <m:listName>string</m:listName>

      <m:listItemID>string</m:listItemID>

      <m:fileName>string</m:fileName>

      <m:attachment>base64Binary</m:attachment>

    </m:AddAttachment>

  </soap:Body>

how can I get the base64 binary from the returned attachment urls??

 

Thanks

Outcomes