Encoding and Decoding to Base64

I did a bit of work today that included encoding and decoding of a string to Base64. It’s nothing overly complicated for those already familiar with .NET and encoding schemes, but with having not posted for a few days, I thought I’d share.  Base64 is an encoding scheme that looks to represent binary data in a textual format using the standard ASCII character set. Metastorm BPM for example returns a Base64 encoded string when it pulls attachments from its eAttachment table (stored as a SQL Image data type) using the GetAttachment() method.  Anyway, I’m rambling, here’s the code in C#:


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s