Skip to content

Add base64 encode usage examples in multiple languages#688

Open
222448082Ashen wants to merge 2 commits intothoth-tech:mainfrom
222448082Ashen:usage-examples-utilities
Open

Add base64 encode usage examples in multiple languages#688
222448082Ashen wants to merge 2 commits intothoth-tech:mainfrom
222448082Ashen:usage-examples-utilities

Conversation

@222448082Ashen
Copy link

Description

Splashkit Function: base64_encode

Overview of example functionality: This example demonstrates how to use the base64_encode function to convert a standard string (e.g., "Hello World") into its Base64 encoded representation. It prints both the original and encoded strings to the console.

Example Output:
(Note: The screenshot base64_encode-1-example.png has been created in the directory)
Text Output:

Original: Hello World
Encoded: SGVsbG8gV29ybGQ=

Files Included

[x] C++ code
[x] C# code (Top-Level statements)
[x] C# code (Object-Oriented Programming)
[x] Python code
[x] Relevant title for the example (.txt)
[x] Screenshot

Usage Example Checks

[x] Code uses Splashkit function above
[x] Code does not use non-Splashkit functions
[x] Code does not use extra function declarations or extra classes
[x] Code does not violate any of the Thoth Tech SplashKit Style Guide rules
[x] Simple, clear demonstration of the function
[x] Tested in Chrome and Firefox

Added example code for base64 encoding using SplashKit in C#, C++ (OOP and top-level), and Python, along with a sample output image and a brief description text. These examples demonstrate how to encode a string to Base64 format across different programming languages.
@netlify
Copy link

netlify bot commented Jan 5, 2026

Deploy Preview for splashkit ready!

Name Link
🔨 Latest commit 3c52e4e
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/695c2b431028aa0009213c44
😎 Deploy Preview https://deploy-preview-688--splashkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Inserted new usage examples for 'rectangle_around', 'bitmap_center', 'base64_encode', and 'close_window' in usage-example-references.json. Also fixed duplicate and ordering issues for 'lines_intersect'. Minor formatting changes to some example titles. Updated api-pages-script.cjs to add anchor spans for function links.
Copy link

@Sparsh300 Sparsh300 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants