Get Files With Content
The following example shows how to use the embed=“true” option to embed the content of the file in the results in Base64 format.
Request
GET /ws/FileData?condition=fdPath='~/00000000-00000000-00409DFF-FF640005/' and fdType='file'
and fdLastModifiedDate>'2010-11-24T22:25:04Z'&embed=true
Response
<?xml version="1.0" encoding="UTF-8"?>
<result>
<resultTotalRows>1264</resultTotalRows>
<requestedStartRow>0</requestedStartRow>
<resultSize>1000</resultSize>
<requestedSize>1000</requestedSize>
<remainingSize>264</remainingSize>
<FileData>
<id>
<fdPath>/db/SB723050334974_Digi_International/00000000-00000000-00409DFF-FF640005/</fdPath>
<fdName>RPC_response-1297463631.0-0001-received_attribute_report.xml</fdName>
</id>
<cstId>3439</cstId>
<fdCreatedDate>2011-02-11T22:34:25Z</fdCreatedDate>
<fdLastModifiedDate>2011-02-11T22:34:25Z</fdLastModifiedDate>
<fdContentType>application/xml</fdContentType>
<fdSize>506</fdSize>
<fdType>file</fdType>
<fdData>....</fdData>
</FileData>...<FileData>
<id>
<fdPath>/db/SB723050334974_Digi_International/00000000-00000000-00409DFF-FF640005/</fdPath>
<fdName>attribute_report.xml</fdName>
</id>
<cstId>3439</cstId>
<fdCreatedDate>2011-02-11T22:34:25Z</fdCreatedDate>
<fdLastModifiedDate>2011-02-11T22:34:25Z</fdLastModifiedDate>
<fdContentType>application/xml</fdContentType>
<fdSize>506</fdSize>
<fdType>file</fdType>
<fdData>....</fdData>
</FileData>
</result>