Search code examples
vb.netvisual-studiofilestream

Convert string base64 to file vb c#


I have an string in vb this string is a file converted to base64 and I want to convert to a file, is there any function in vb to do it?


Solution

  • Use File.WriteAllBytes but first decode the Base64-String.

    You could also (not recommended) decode the string and save it via "MemoryStream" as an executable (or whatever the filetype is).