I receive the following error message when attempting to run this code:
Dim Buffer As Byte() = Convert.FromBase64String(strBody)
The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
I am trying to output a readable string of text (variable) to a Textbox from my email using POP :
It also contains HTML code which i removed because i was unable to save the post on here.
String text
--_004_46221637E59720418908A2B0A37AE83701464C393EBAHSIAEXB201b_ Content-Type: multipart/alternative; boundary="_000_46221637E59720418908A2B0A37AE83701464C393EBAHSIAEXB201b_"
--_000_46221637E59720418908A2B0A37AE83701464C393EBAHSIAEXB201b_ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Peter,
I look forward to hearing from you soon.
Thanks Emma
Tel:328148 Mob: 0777 8205
[recycling%20logo]"Please consider your environmental responsibility before= printing this e-mail"
This e-mail and any attached files are confidential and may also be legally= privileged. They are intended solely for the intended addressee.
--_000_46221637E59720418908A2B0A37AE83701464C393EBAHSIAEXB201b_ Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
--_000_46221637E59720418908A2B0A37AE83701464C393EBAHSIAEXB201b_--
--_004_46221637E59720418908A2B0A37AE83701464C393EBAHSIAEXB201b_ Content-Type: image/jpeg; name="image001.jpg" Content-Description: image001.jpg Content-Disposition: inline; filename="image001.jpg"; size=1090; creation-date="Tue, 14 Jul 2019 09:52:57 GMT"; modification-date="Tue, 14 Jul 2019 09:52:57 GMT" Content-ID: Content-Transfer-Encoding: base64
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIf IiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7 Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAiACYDASIA AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAw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