2007-10-11 21:16:28 +00:00
|
|
|
local input = source.chain(
|
2022-03-18 12:12:39 +01:00
|
|
|
source.file(io.open("input.bin", "rb")),
|
2007-10-11 21:16:28 +00:00
|
|
|
encode("base64"))
|
|
|
|
local output = sink.chain(
|
2022-03-18 12:12:39 +01:00
|
|
|
wrap(76),
|
2007-10-11 21:16:28 +00:00
|
|
|
sink.file(io.open("output.b64", "w")))
|
|
|
|
pump.all(input, output)
|