TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mega Anaska
NA
144
35.6k
Convert url to base 64
Jul 15 2019 9:14 PM
Hallo I want covert http://malubov.blogspot.com/18090005.jpg to base 64. is it possible ? I tried to use this script but error
Uri uri = new Uri("http://malubov.blogspot.com/18090005.jpg");
//string path = HttpContext.Current.Server.MapPath(uri.AbsolutePath);
//string base64String = null;
//using (System.Drawing.Image image = System.Drawing.Image.FromFile(path))
//{
// using (MemoryStream m = new MemoryStream())
// {
// image.Save(m, image.RawFormat);
// byte[] imageBytes = m.ToArray();
// base64String = Convert.ToBase64String(imageBytes);
// }
//}
Reply
Answers (
2
)
Number Formatting in JQuery
ASP.NET Core Razor Page or MVC