Get Media Global
You can get a document of a blockchain-exported parcel using this API.
| URL | /transferability/v1/get_media_global/{sMediaid}/{bForcefulldef} |
| Method | GET |
| Parameters |
sMediaid, string bForcefulldef, boolean |
| Sample Request JSON | |
| Sample Response JSON |
{ "status": "ok", "isvalid": true, "media": { "datacontent_lod": 2, "mediaid": "2cdafeee-b018-4d08-a661-8fb716f27a8d", "mediaid_long": "511108a88f03e5e6f614f2b3bc3bd62400f5b249e1bb79ff25bcc4469e349817", "mediafilename": "test image.png", "mediasizekb": 110.3271484375, "datecreated": "2022-08-03T10:43:00.243", "datemodified": "2022-08-03T10:43:00.243", "datacontent": "base64image", }, "timing": 9 } |
| Response Codes |
200: ok E118: inaccessible media |
| NOTE |
The parcel should be exported with media (need to select the media when exporting). Then it is needed to get the parcel details with another domain (cannot use the same domain we used to export). Then it returns the "smediaidglobal" under "ledger_fields → Value_Memo" Use this "smediaidglobal" to get the media globally. |