From 778c6ef5af2333bd38badcc2d8ad80f562e155ab Mon Sep 17 00:00:00 2001 From: nielsbaloe Date: Sun, 9 Jul 2023 12:28:49 +0200 Subject: [PATCH] base64 --- serverGet.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serverGet.php b/serverGet.php index 06adb1f..59c2991 100644 --- a/serverGet.php +++ b/serverGet.php @@ -56,7 +56,7 @@ if (count($all)!=0) { $file = fopen($filename, 'c+b'); flock($file, LOCK_SH); - echo 'data: ', fread($file, filesize($filename)), PHP_EOL; + echo 'data: ', base64_dencode(fread($file, filesize($filename))), PHP_EOL; fclose($file); unlink($filename); break; @@ -69,4 +69,4 @@ if (count($all)!=0) { echo 'retry: 1000', PHP_EOL, PHP_EOL; // shorten the 3 seconds to 1 sec -?> \ No newline at end of file +?>