Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

MIME64 Encoder and Decoder written in T-SSQL

By Peter Larsson,

Here is a MIME64 encoder function written entirely in T-SQL!
© 2006 Peter Larsson, Developer Workshop, all rights reserved

As long as the copyright notice is visible within the function declaration
and you include a note in the documentation of your system that these
functions are written by me, you may use these functions for free of charge.

If you intend to use these functions in a commercial application, you are
also required to email me about your system and provide an emailaddress to
the application manager.

If you like the code and use it just for fun, send an e-mail to me and tell
me about your experience with these functions.

These two functions encodes data to MIME64 compliant text and decodes and MIME64 compliant text back to data.

Total article views: 925 | Views in the last 30 days: 4
Related Articles




Function within a function



New built-in functions in SQL Server 2012

Introduction: Microsoft SQL Server 2012 Release Candidate 0 introduces 14 new built-in functions. T...



functions causing query to run excessively long


How to insert these dates in database

How to insert these dates in database


Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones