Search My Blog

Thursday, April 21, 2022

STD Integrated Framework - PowerBuilder 2021 BASE64 Example!

 ** Hot News **

STD Foundation Classes

Updated BASE64 Example Application released!

 

     Software Tool & Die Inc. today are very pleased to announce an updated Base64 Encoding / Decoding example application for Appeon PowerBuilder that was built from the latest STD Integrated Framework (version 2022.2.0.285 beta ) and the newest Appeon PowerBuilder PB2021 Maintenance Release release (build 1506. The min changes in this release are:
  • Migrated the code to PB2021 build 1506
  • Added "Theme" support for PB2021
  • Added "Corrupt" Base64 file handling check
  • Updated the BLOB processing feature (SQLAnyWhere v17)
  • Converted MessageBox() commands to STD Framework's "Message Box" feature. This allows a resizable message dialogue, automatic centering within the App and multiple monitor support.
  • Update the STD Framework to the latest version 2022.2.0.285
  • Tested the Base64 code on W10 version 21H2 build 19044.1645
  • Tested the Base64 code on W11 version 21H2 build 22000.613
  • Corrected GetFileOpen() bug
  • Added PowerClient App deployment project
  • Added PowerServer App deployment project

 
Base64 example from an ANSI text file!

     Base64 encoding and decoding is a critical  feature when processing XML and JSON files that contain binary datum. As well as using PowerBuilder's PBDOM feature, an XML DataWindow or interacting with Web Services that pass binary data back and forth (ie: JSON in a RESTFul web service). The received binary data will be in base64 encoded format - which is unusable to your PB application unless decoded (converted back) to its original binary state. Conversely, binary data that your PB application needs to send to other XML or JSON based applications must be converted (encoded) into the base64 standard.
 
PowerClient based Base64 example using Unicode text file!
 
Error handling for corrupt (incomplete) or wrong encoded Base64 files.


    The Base64 Example application utilizes standard Microsoft Base64 API's supplied by the MS-Windows O/S. These API's are now embedded in the framework's "nc_crypto_master" object class and easily called from your PowerScript code, as follows:
  • lo_crypto.of_base64_stringtobinary ( lblb_image , ls_base64 )

Base64 file translation into an image (or any other binary format for that matter)!
 

    The latest Base64 Example - along with the STD Integrated Framework is also able be used with PowerClient and PowerServer (Cloud) applications. Thus, the Base64 Example application can also be deployed to your favourite Web Server for convenient deployment. 
 
    You can download the Base64 Example application from the STD Framework's website by clicking here! You can also download either of the free open source STD frameworks for PowerBuilder, InfoMaker and PowerServer2021 by clicking here!

Enjoy!

Regards ... Chris
 

No comments:

Post a Comment