What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 25848 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > ASP.NET > Convert Base64 to Image ...
Gopesh9

Convert Base64 to Image

 Code Snippet posted by: Gopesh9 | Posted on: 8/14/2012 | Category: ASP.NET Codes | Views: 678 | Status: [Member] | Points: 40 | Alert Moderator   


public Image ConvertBase64ToImage(string baseS)

{
byte[] iBytes = Convert.FromBase64String(baseS);
MemoryStream mem = new MemoryStream(iBytes, 0, iBytes.Length);
mem.Write(iBytes, 0, iBytes.Length);
Image ConvertedImage = Image.FromStream(mem, true);
return ConvertedImage;
}


G. S.
.Net Developer
Found interesting? Add this to:


>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/25/2013 12:15:28 PM