Download

Used to download binary content from either the requested content field or from the requested Document object type. The types of content that can be uploaded include content with the field types of binary, image, or note as well as content for a Document object.

Parameters

recordId
The record ID of the content.
fieldName
The name of the content field within the primary section of the business object. Set the value to be empty if the content belongs to a Document object.
fileName
The name of the file. This parameter is used for the response object if it is not a Document object. If the record is a Document object, the file name from the record is used.

Errors

InvalidContentException
The recordId or content fields of the content object are incorrect.
InvalidDocumentTypeException
The record is not a document type.
IOException
A system error occurred.

Sample request

<soapenv:Envelope 
	xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 	xmlns:ws="http://ws.tririga.com" xmlns:con="http://content.dto.ws.tririga.com">
   <soapenv:Header/>
   <soapenv:Body>
      <ws:download>
         <ws:content>
            <con:fieldName>cstImageIM</con:fieldName>
            <con:recordId>5370494</con:recordId>
         </ws:content>
      </ws:download>
   </soapenv:Body>
</soapenv:Envelope>

Sample response

<soap:Envelope 
	xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <downloadResponse xmlns="http://ws.tririga.com">
         <return>
            <checksum xmlns="http://content.dto.ws.tririga.com">1927753939</checksum>
            <content ns1:mimeType="image/png" xmlns="http://content.dto.ws.tririga.com" xmlns:ns1="http://www.w3.org/2004/11/xmlmime">
               <Include href="cid:12396738471521607232892@http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2004/08/xop/include"/>
            </content>
            <fieldName xmlns="http://content.dto.ws.tririga.com">cstImageIM</fieldName>
            <fileName xmlns="http://content.dto.ws.tririga.com">file1239394426042.png</fileName>
            <length xmlns="http://content.dto.ws.tririga.com">9175</length>
            <message xsi:nil="true" xmlns="http://content.dto.ws.tririga.com"/>
            <mimeType xmlns="http://content.dto.ws.tririga.com">image/png</mimeType>
            <path xsi:nil="true" xmlns="http://content.dto.ws.tririga.com"/>
            <recordId xmlns="http://content.dto.ws.tririga.com">5370494</recordId>
            <status xmlns="http://content.dto.ws.tririga.com">Success</status>
            <updatedDate xmlns="http://content.dto.ws.tririga.com">04/13/2009 06:50:47 PM</updatedDate>
         </return>
      </downloadResponse>
   </soap:Body>
</soap:Envelope>