Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
Followup Browser/Javascript -- How to match Compression in Browser/Javascript with Server/Php for Decompresssion

This is a followup to the question

using php-gzdeflate and pako-js

One of the answers indicated that the lines of code . . const compress = str => Buffer.from(pako.deflateRaw(str)).toString('base64'); console.log(compress('asdfasdfasdfasdf')); //SyxOSUtEwgA= . .

might work, provided the "Buffer" could be implemented. The author of the answer didn't say exactly how to generate the Buffer for the Browser/Javascript.

I managed to generate a javascript file "safe-buffer.js" based on the safe-buffer nodejs module, but I have no idea as to how to actually invoke/init the "Buffer" object to be able to test with it.

If someone has information or insight into how this works within the Browser/Javascript, this would help a number of people trying to solve this issue.

thanks

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!