asp.net - Can I include an image with binary data to a html document to avoid loss of image? -


our project email campaign. customer upload html email template using file upload control our database. uploaded html email template contains image path. image path mention local directory of customer , image not displayed in mail after sent. our ideas is... need suggest customer create html design template appended image binaries. if html email template contains image binary data, image displayed without referencing source path local or online. correct approach? or other best method append image html email template avoid loss of local directory images of customer. please suggest. correct answer appreciated. lot

you can use base64 encoding embedding images in html. can guide users use 1 of available online tools (like one) encoding images base64 string. output can embedded in html file as:

<img src=”data:<mimetype>;base64,<base64_encoded_image>”> 

Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -