mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-08 14:28:21 +01:00
9 lines
234 B
Lua
9 lines
234 B
Lua
|
local base64 = socket.mime.base64.encode()
|
||
|
local split = socket.mime.split()
|
||
|
local convert = socket.mime.chain(base64, split)
|
||
|
while 1 do
|
||
|
local chunk = io.read(4096)
|
||
|
io.write(convert(chunk))
|
||
|
if not chunk then break end
|
||
|
end
|