HomeWiki
HomeWiki
  1. Utils
  • Back to home
  • 2. Connectivity
  • Introduction
  • Custom Script
  • Playground
  • Database Explorer
  • Log Stream
  • Direct Communication
  • Softone
    • Getting Started
  • Datapump
    • Getting Started
    • Crons
    • Legacy Windows Support
    • SDK
      • DB
        • _executeQuery
        • _executeStoreProcedure
        • _executeInsertQuery
        • _executeInsertQueriesInTransaction
      • Import
        • _productsImport
        • _categoriesImport
        • _brandsImport
        • _attributesImport
        • _attributeSetsImport
        • _unitsImport
        • _quantityImport
        • _customersImport
        • _contactsImport
        • _callsImport
        • _eventsImport
        • _tasksImport
        • _ordersImport
        • _usersImport
        • _customerSourceTagsImport
        • _productSourceTagsImport
      • Log
        • _logDebug
        • _logInfo
        • _logWarn
        • _logError
      • Web Requests
        • _httpGetJson
        • _httpPostJson
        • _httpPutJson
        • _httpDeleteJson
        • _httpPatchJson
      • Variables
        • _saveVariable
        • _getVariable
        • _deleteVariable
      • Blob
        • _blobConnect
        • _blobExists
        • _blobGet
        • _blobFind
      • Utils
        • _encodeBase64
        • _sleep
        • _getLastSyncDate
        • _updateLastSyncDate
        • _resetLastSyncDate
  1. Utils

_encodeBase64

Documentation: _encodeBase64 Function#

The _encodeBase64 function is used to encode a string into Base64 format. This function is useful for converting data into a text representation that can be easily transmitted or stored.

Function Signature:#

Parameters:#

input:
Description: The string that you want to encode into Base64 format.
Type: string
Example:

Return Value:#

Returns:
A string that represents the Base64-encoded version of the input string.
Type: string
Example:

Function Workflow:#

1.
Receive Input:
The function takes the input string provided as the parameter.
2.
Encode to Base64:
The function converts the input string into its Base64 representation.
3.
Return Encoded String:
The function returns the Base64-encoded string.

Example Usage:#

Important Considerations:#

Encoding Scheme:
Base64 encoding is a common method for encoding binary data into text. It uses a specific character set and padding rules.
Input Constraints:
Ensure that the input is a valid string. The function will encode it as-is without validating its content.
By using _encodeBase64, you can convert strings into Base64 format, making them suitable for various use cases such as data transmission and storage where text representation is required.
Previous
_blobFind
Next
_sleep
Built with