Skip to content
English
  • There are no suggestions because the search field is empty.

Get Media Preview

You can get an uploaded document in base64 format using this API.

URL /media/v1/get_media/{sMediaid}/{bForcefulldef}
Method GET
Parameters

sMediaid, string

bForcefulldef, boolean

Sample Request JSON  
Sample Response JSON

{

"status": "ok",

"isvalid": true,

"media": {

"datacontent_lod": 2,

"mediaid": "e1e0c3a3-989b-48ea-8e5d-9a0e9fd3434c",

"mediaid_long": "ba53cc90bdb4aa187e9c8932da19a2271769f2251c10807cc19cfa2a52a36ee7",

"mediafilename": "download.png",

"mediasizekb": 1.0185546875,

"datecreated": "2022-07-14T12:32:04.764",

"datemodified": "2022-07-14T12:32:04.764",

"idmediacategory": 3,

"datacontent": "data_contents_in_base64"

},

"timing": 6

}

Response Codes 200: ok 
Description

bForcefulldef = 0: Get a preview

bForcefulldef = 1: Get the whole document