Improve the speed of base64 encode and decode.

This commit is contained in:
Mark Crane
2015-03-31 18:48:00 +00:00
parent 8604ce0870
commit 30bb3e211d
2 changed files with 13 additions and 36 deletions

View File

@@ -209,10 +209,10 @@
dofile(scripts_dir.."/resources/functions/base64.lua");
--get the base64
recording_base64 = row["recording_base64"];
--add the path to filename
ivr_menu_greet_long = recordings_dir.."/"..ivr_menu_greet_long;
--save the recording to the file system
if (string.len(recording_base64) > 32) then
local file = io.open(ivr_menu_greet_long, "w");
@@ -233,10 +233,10 @@
dofile(scripts_dir.."/resources/functions/base64.lua");
--get the base64
recording_base64 = row["recording_base64"];
--add the path to filename
ivr_menu_greet_short = recordings_dir.."/"..ivr_menu_greet_short;
--save the recording to the file system
if (string.len(recording_base64) > 32) then
local file = io.open(ivr_menu_greet_short, "w");