User Manual

12.27.2024

MANUAL

Developer Function: Server Script: utilities.ConvertToBase64String

The Japanese version of the manual is the latest.
Please also check.
## Overview Convert the string passed as an argument to the "Server Script" into a Base64 format string. ## Supported Versions 1. Pleasanter 1.3.9.0 or later ## Syntax ``` utilities.ConvertToBase64String(str, encoding) ``` ## Parameter |Parameter|Type|Required|Overview| |:----------|:----------|:---:|:---------------------------| |str|string|Yes|String to convert| |encoding|string|No|Specify the [string encoding](https://learn.microsoft.com/en-us/dotnet/api/system.text.encoding?view=net-9.0&viewFallbackFrom=net-6.0)%20(%27utf-8%27%20is%20specified%20if%20omitted) ('utf-8' is specified if omitted.)| ## Return Value Base64 format text string ## Usage Example The following example converts the string "Pleasanter" to a Base64 format string and outputs it to the log. ##### JavaScript ``` let base64 = utilities.ConvertToBase64String('Pleasanter', 'shift_jis'); context.Log(base64); ``` ## Notes This is a method used in "[Server Script](/en/manual/table-management-server-script)". It cannot be used in "[Script](/en/manual/table-management-script)". ## Related Information <div id="ManualList"><ul><li><a href="/en/manual/table-management-script">Table Management: Script</a><span>08.13.2024 up</span></li> <li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.