Skip to content

Commit 97d3d3e

Browse files
authored
Merge pull request #511 from getyoti/SDK-2564
SDK-2564 - Update face.comparison.check.controller.js
2 parents 2c4a239 + beebb75 commit 97d3d3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/idv/src/controllers/use-cases/face.comparison.check.controller.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ async function addFaceCaptureResourceToSession(sessionId) {
6060
const imageBuffer = Buffer.from(base64PngImage, 'base64');
6161

6262
// Note: below describes how to directly get the image buffer, while the example uses a white pixel in base64 format, then converted into a buffer
63-
// const imageBuffer = fs.readFileSync(`path-to-image.png`)
63+
// const base64PngImage = fs.readFileSync(`path-to-image.png`).toString('base64')
64+
// const imageBuffer = Buffer.from(base64PngImage, 'base64');
6465

6566
const uploadFaceCaptureImagePayload = new UploadFaceCaptureImagePayloadBuilder()
6667
.forPngImage()

0 commit comments

Comments
 (0)