From 86c7e543a650479747601b87a0c9828249e17e85 Mon Sep 17 00:00:00 2001 From: inc0der Date: Mon, 14 Aug 2023 11:41:58 -0300 Subject: [PATCH] remove binary encoding option since it returns a string not buffer --- runtime/src/ceramic/Files.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/ceramic/Files.hx b/runtime/src/ceramic/Files.hx index 955dc5e15..1601b2d99 100644 --- a/runtime/src/ceramic/Files.hx +++ b/runtime/src/ceramic/Files.hx @@ -460,7 +460,7 @@ class Files { return null; } else { - var data:UInt8Array = fs.readFileSync(path, 'binary'); + var data:UInt8Array = fs.readFileSync(path); return data != null ? data.toBytes() : null; }