2025-07-10 08:05:27 -05:00
2025-07-10 08:05:24 -05:00
2025-07-10 08:05:27 -05:00
2025-07-10 08:05:27 -05:00
2025-07-10 08:05:27 -05:00
2025-07-10 12:32:07 -05:00
2025-07-10 08:05:27 -05:00
2025-07-10 08:05:27 -05:00
2025-07-10 08:05:27 -05:00
2025-07-10 09:24:22 -05:00

Copy and Encode Image Using Base64

This project was developed to encode a PNG file's contents as Base64 and create the necessary data to embed an image directly into an HTML file, rather than having to copy the image file to the source directory for the HTML file. Primarily, this was used for creating an e-mail signature in MS Outlook so the image was transmitted directly with each and every e-mail instead of requiring the image to be in a public location and downloaded by e-mail clients.

Usage

The application can be used using either of 2 methods.

First, run the application without any command line arguments and a Windows form will appear, allowing you to choose the desired PNG file and click a button to encode and copy the encoded data to the clipboard.

Second, if you add the PNG file as the very first command line argument, the application will simply run, encode the PNG file, and copy the encoded data to the clipboard, without ever showing the Windows form. In other words, you could create a Windows Right Click method for PNG files to simply run this file and generate the encoded data.

It's a very simple application with only one purpose! :)

Description
A C# project to capture a PNG file's data, encode it using Base64, and copy the contents to the clipboard. The purpose of this project is to easily embed images into HTML files.
Readme 43 KiB
Languages
C# 100%