Simple Base64 decoding function
written for Google inline attachement
by andreich
2 years, 3 months ago and tagged with:
base64
ruby
1
2
3
4
5
6
7
8
9 |
def decode(file, str)
File.open(file, "w ") do |f|
q = ""
str.each_line do |l|
q = l
end
f.write Base64.decode64(q)
end
end
|
Currently 0 comments