Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Let me start by saying i am not very knowledgeable about html.

I have emails that i wish to get the html of and then replace all of the image tags with references to the attached images that i find in the html with base64 strings inside tags.

Hopefully that's clear, struggling to word my question.

What would be the best way of doing this?

Edit: I am trying to do this from a String of HTML in c#.

Thanks
Carl
Posted
Updated 26-Feb-15 3:02am
v2
Comments
Sergey Alexandrovich Kryukov 26-Feb-15 8:58am    
What is it? ASP.NET? But whole ASP.NET is dedicated mostly to generating HTML on the fly in HTTP response, as all other server-side technology. On each HTTP request, you can generate, for example, img src attribute you like. You don't replace anything, you can parametrize HTML output.
—SA
Carl Mailey 26-Feb-15 9:02am    
I am trying to do this with a String of HTML
Sergey Alexandrovich Kryukov 26-Feb-15 9:03am    
Is it ASP.NET or not?
—SA
Carl Mailey 26-Feb-15 9:12am    
no its just C#
Sergey Alexandrovich Kryukov 26-Feb-15 9:27am    
Then it's just string arithmetic. What's the problem?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900