Description
Return binary data content as a file to download or display on the workstation.
Parameters (* denotes an optional parameter)
DataId
This integer parameter specifies the id(s) of the binary data content to retrieve.
NOTE: The data id of an object is not the same as the object id. Use the Objs or ObjsNav commands to retrieve the data ids for any object.
http://server/gnportal/do.ashx?cmd=objs&ids=27694 returns this xml: <image xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="obj27694" name="Fourth_of_July_CACCT103.jpg" creationDate="2009-01-14T11:44:14.650Z" modifiedDate="2009-02-11T21:34:36.040Z" author="MIKE LUCIA" keywords="" size="179719" pixWidth="858" pixHeight="1105" width="10.8965997695923" height="14.0334997177124" series="" headline="FREMONT FOURTH OF JULY PARADE" ...> <folderRef idref="obj27687" /> <creatorRef idref="obj19348" /> <modifierRef idref="obj19348" /> ... <thumbnail id="data1354" mime="image/jpeg" size="6954"> <url>http://localhost/tark4/do.ashx?Cmd=Data&DataId=1354</url> </thumbnail> <preview id="data1355" mime="image/jpeg" size="88073"> <url>http://localhost/tark4/do.ashx?Cmd=Data&DataId=1355</url> </preview> <data id="data1356" mime="image/jpeg" size="179719"> <url>http://localhost/tark4/do.ashx?Cmd=Data&DataId=1356</url> </data> </image> The binary elements of this image object (id=27694) are highlighted in the picture above. Notice that the dataId of the thumbnail element is 1354, preview=1355, and data=1356. These are the values to pass as the dataId when using the Data command for this object. |
FN*
Optional file name to associate to the returned data.
Examples
Example 1: http://server/gnportal/do.ashx?cmd=data&dataid=171
Example 2: http://server/gnportal/do.ashx?cmd=data&dataid=171&fn=Myfile
Notice in this case that the file name has been specified.