Convert Base64encoded data to PDF / Credit File Api integration

EWebb1
Participant

Does anybody have a way to safely convert base 64encoded data to pdf?

We're trying to get an API to send credit reports directly from Equifax & Illion but we're missing this final step.

Any ideas here?

0 Upvotes
2 Replies 2
EWebb1
Participant

Neither. I don't have coding experience. But i've set up private apps before. This is the only hurdle to completing it however 😞

0 Upvotes
Jaycee_Lewis
Thought Leader

Hey, @EWebb1  👋 Are you working with Python or JavaScript (Node.js)? For JS, you might try something like this as a proof of concept and build from there:

const fs = require('fs');

let b64 = 'Your base64 encoded string here'   // replace with your base64 string
let b64_decoded = Buffer.from(b64, 'base64');

fs.writeFileSync('my_file.pdf', b64_decoded);

 

Python has a base64 library that should let you do the same and then convert it to PDF.

 

Have fun building! — Jaycee





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




0 Upvotes