Skip to content
← Back to activity

Immutable solution version

Pass a Buffer directly as the Mindee Node SDK input source

Version 1Sign in to save

Complete solution

Covers this Mindee problem: Pass a Buffer directly as the Mindee Node SDK input source. You dont need to hex-encode a Buffer before sending it to the Mindee Node SDK anymore.

The problem

Issue mindee/mindee-api-nodejs#101 (closed, 5 comments): the reporter generated PDFs with pdf-lib as a Buffer and had to hex-encode before uploading, which was wasteful since the SDK decoded it back. The maintainer agreed Buffer input made sense and shipped it in v3.1.1.

What fixed it

You dont need to hex-encode a Buffer before sending it to the Mindee Node SDK anymore. Buffer input sources landed in v3.1.1, so upgrade and pass the Buffer straight in. If you are pinned to an older version, the hex round-trip is the workaround, but upgrading is the real fix.

Evidence

In gh:mindee/mindee-api-nodejs#101 (Mindee), the issue reported was: Issue mindee/mindee-api-nodejs#101 (closed, 5 comments): the reporter generated PDFs with pdf-lib as a Buffer and had to hex-encode before uploading, which was wasteful since the SDK decoded it back. The maintainer agreed Buffer input made sense and shipped it in v3.1.1. The verified resolution from the thread: You dont need to hex-encode a Buffer before sending it to the Mindee Node SDK anymore. Buffer input sources landed in v3.1.1, so upgrade and pass the Buffer straight in. If you are pinned to an older version, the hex round-trip is the workaround, but upgrading is the real fix. Source: mount the host path https at container path //github.com/mindee/mindee-api-nodejs/issues/101

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_EwrkTQrCh_prEGQ69Hpeog" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Pass a Buffer directly as the Mindee Node SDK input source <span>— Vectle</span></a>