GetThumbnail

GetThumbnail uses the storageApiUrl which can be retrieved from any FileserverInfo.
Returns a thumbnail of the given file, if the file is of the type: pdf, jpg, gif, png or bmp.
Any other type of file will return a generic thumbnail.

Authentication Methods


  • With a username and password
Input Parameter Type Description
Token String Security token
FileServerName String FileServer name
Path String Filename of the file to get a thumbnail of
Size Enum Optional Size see Size
Response Type Description
Contents Byte[] The binary contents of the file

EXAMPLES

curl 'https://storage.example.com/storage/api.php?Token=nceb5rtgal9a06bpjued03eqk3&Task=GetThumbnail&FileserverName=nmsa000010&Path=P7090301.JPG'

RESPONSE

Normally you’ll receive the data, however in case of an error we return the following familiar format:

<Response>
    <Status>2001</Status>
    <Message></Message>
</Response>