Base64 Image Encoder
Editor's Note: This file was selected as MATLAB Central Pick of the Week
Base64img takes a MATLAB figure and encodes it as a JPEG in a base64 string. This string can be used directly in a web page to display an image without an image file (in a subset of browsers only- 32 bit Windows and Linux).
Base64file takes a file on disk and encodes it as a base64 string.
This submission uses the Apache Commons Codec library to perform the encoding http://commons.apache.org/codec/
Cite As
Michael Katz (2024). Base64 Image Encoder (https://www.mathworks.com/matlabcentral/fileexchange/24514-base64-image-encoder), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > External Language Interfaces > Web Services with MATLAB > Call Web Services from MATLAB Using HTTP >
Tags
Acknowledgements
Inspired: Model Review Tool
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.