lazhen
2025-01-07 b3987122cbbc46c5c59d3173f37fca3170b6dc5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Quintiq file version 2.0
#parent: #root
Method GetFileStringData (
  String jsonstring
) as String id:Method_ApplicationMacroPlanner_GetFileStringData
{
  #keys: '[139394.0.1418121157]'
  Body:
  [*
    // Get file method, that will return file body 
    // we have this method because getfile now returns
    // in json string, so we have this method for parsing
    // and return 
    json := JSON::Parse( jsonstring );
    
    data := json.Get( 'data' ).GetString();
    bd := BinaryData::FromBase64EncodedString( data );
    result := bd.ToString();
    
    return result;
  *]
}