<Urgent>Hi, Can anyone help with the syntax of below as it's not attaching the image in mail body?

ConsistImg= Convert.ToBase64String(System.IO.File.ReadAllBytes(in_Config(“Email_InputFolderPath”).ToString+"\ConsistencyCheckImage.png"))

P.S> ConsistImg is variable

P.S> I need help with basically syntax only

What is the value for that variable?

Hi,

Plz try to hardcode the value in of imgsrc in place of “consistimg” .Check whether you are able to get or not?

If not, can you plz try on this waySitelogo

Thanks,
Sneha

that’s path of image being converted into base64. everything is correct dunn knw smthng I am missing that’s why it’s not happening

your this way isn’t appearing…are u giving a website link or smthng?

It’s the image you should convert to base64, not the path.

yes, image only is being converted my bad! Previously it was working fine. Don’t know there is some issue with the syntax of html

ConsistImg= Convert.ToBase64String(System.IO.File.ReadAllBytes(in_Config(“Email_InputFolderPath”).ToString+"\ConsistencyCheckImage.png"))

Could u plz again read the question n then help!

Could you assign the email content to a string variable, write it to a text file and then upload it here? (You may edit the text file to remove sensitive data first before uploading.)