469,081 Members | 1,529 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,081 developers. It's quick & easy.

c# . Convert image to Base64 string!

I already broke my head, searched everywhere. PLEASE I NEED YOUR HELP!
Do you know how can I convert an image file( like a gif or jpeg ) to a Base64 string? I need to use it to send embedded image files through email. I only need this to finish my app.

Thank you!!!

--------------------------------
From: marcelo szwarc

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>eQ/PvTGI/0WrytAXl6osdA==</Id>
Jul 21 '05 #1
2 16745
This explains how to convert byte[] to Base64 string

http://msdn.microsoft.com/library/de...tringtopic.asp

"marcelo szwarc via .NET 247" <an*******@dotnet247.com> wrote in message
news:O9**************@TK2MSFTNGP09.phx.gbl...
I already broke my head, searched everywhere. PLEASE I NEED YOUR HELP!
Do you know how can I convert an image file( like a gif or jpeg ) to a Base64 string? I need to use it to send embedded image files through email.
I only need this to finish my app.
Thank you!!!

--------------------------------
From: marcelo szwarc

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>eQ/PvTGI/0WrytAXl6osdA==</Id>

Jul 21 '05 #2
This explains how to convert byte[] to Base64 string

http://msdn.microsoft.com/library/de...tringtopic.asp

"marcelo szwarc via .NET 247" <an*******@dotnet247.com> wrote in message
news:O9**************@TK2MSFTNGP09.phx.gbl...
I already broke my head, searched everywhere. PLEASE I NEED YOUR HELP!
Do you know how can I convert an image file( like a gif or jpeg ) to a Base64 string? I need to use it to send embedded image files through email.
I only need this to finish my app.
Thank you!!!

--------------------------------
From: marcelo szwarc

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>eQ/PvTGI/0WrytAXl6osdA==</Id>

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Albert Jan | last post: by
2 posts views Thread by VenuGopal | last post: by
1 post views Thread by James dean | last post: by
1 post views Thread by marcelo szwarc via .NET 247 | last post: by
1 post views Thread by Roland Rickborn | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.