lazhen
2024-11-04 9cc08f0b6862baf1b50c0702e87a3c4f39f40a52
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;
  *]
}