hongji.li
2023-11-07 1a1ba3ad5ed9e4380185aa1ccad20204a0e5f115
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;
  *]
}