Elixir Write Base64 To File

[Solved] Elixir Write Base64 To File | Elixir - Code Explorer | yomemimo.com
Question : elixir write base64 to file

Answered by : mike-binns-b4fckyp5p3z3

{:ok, data} = Base.decode64(base64_string)
File.write("/tmp/file.gif", data, [:binary])

Source : https://www.sonerdy.com/elixir/2016/05/23/saving-base64-encoded-file-in-elixir.html | Last Update : Tue, 03 Aug 21

Answers related to elixir write base64 to file

Code Explorer Popular Question For Elixir