Be the first to rate this file! 10 downloads (last 30 days) File Size: 2.51 KB File ID: #24514

Base64 Image Encoder

by Michael Katz

 

22 Jun 2009

Code covered by BSD License  

Encode a MATLAB (R) figure or file on disk as a string in Base64

Download Now | Watch this File

File Information
Description

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/

MATLAB release MATLAB 7.8 (R2009a)
Other requirements To
Zip File Content  
Other Files base64file.m,
base64img.m,
base64test.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
web Michael Katz 30 Jun 2009 12:34:15
encoding Michael Katz 30 Jun 2009 12:34:15
figure Michael Katz 30 Jun 2009 12:34:15
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com