![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 5 of 5 total |
![]() |
Fri, May 26 2017 12:38 PM | Permanent Link |
Mark Brooks Slikware | Can anybody tell me if there's a function to Base64 encode a string, anywhere within the depths of the EWB library?
If not, does anybody have one they might care to share? Regards Mark |
Fri, May 26 2017 2:32 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Mark,
<< Can anybody tell me if there's a function to Base64 encode a string, anywhere within the depths of the EWB library? >> No, but I think I'm supposed to be adding one at some point. ![]() Tim Young Elevate Software www.elevatesoft.com |
Fri, May 26 2017 3:53 PM | Permanent Link |
Mark Brooks Slikware | >>Tim Young [Elevate Software] wrote:
>>No, but I think I'm supposed to be adding one at some point. ![]() Fantastic! This evening would be ideal! |
Sat, May 27 2017 1:05 PM | Permanent Link |
Raul ![]() | On 5/26/2017 12:38 PM, Mark Brooks wrote:
> Can anybody tell me if there's a function to Base64 encode a string, anywhere within the depths of the EWB library? > > If not, does anybody have one they might care to share? You can use external atob/btoa that generally works fine but may need some conversion when working with unicode (https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/atob) To use in EWB just declare 2 external functions in your unit interface section: interface ..... external function atob(ins:string):string; external function btoa(ins:string):string; .... implementation ... //and then in code call this to encode Base64String := btoa(RegularString); //or this to decode RegularString := atob(Base64String); Raul |
Sat, May 27 2017 4:24 PM | Permanent Link |
Mark Brooks Slikware | >> Raul wrote:
>> You can use external atob/btoa that generally works fine but may need Thanks Raul - most useful |
This web page was last updated on Friday, February 14, 2025 at 12:13 PM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |