If I misunderstood your question and this was not the direction you want, I apologize. If the header of base64 data (it's like data:application/pdf base64,) is always included, you can also modify to content: om((","), 'base64').Who knew Out-File re-encoded to Unicode by default Solved by doing the following: file 'C:\input.txt' data Get-Content file ::ASCII.GetString ( System.Convert::FromBase64String (data)) Out-File -Encoding 'ASCII' out. I’m able to extract the content using mime services but how to base64 decode the extracted content of size this big I tried converting into a string and decoded using the built in service but it is not working. 6 Answers Sorted by: 25 Well I got it working. In this pattern, the base64 data is converted to the buffer, and it is sent using the nodemailer. The message contains XMLs and attachments (base64 encoded, currently testing with attachment size until 25 MB).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |