We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 119b8e6 commit 91861b7Copy full SHA for 91861b7
README.md
@@ -74,7 +74,7 @@ convert its data into a base64-encoded data URI:
74
import { promises as fs } from "fs";
75
76
// Read the file into a buffer
77
-const data = await fs.readFile("path/to/image.png", "utf-8");
+const data = await fs.readFile("path/to/image.png");
78
// Convert the buffer into a base64-encoded string
79
const base64 = data.toString("base64");
80
// Set MIME type for PNG image
0 commit comments