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

155
Views
Download .db files for backing up the Database

I am trying to download the .db files via browser that are present on my webserver so that I can back them up. The DB files are SQLite3 db files and they have ANSI encoding when I download them they are converted to UTF-8 and that is corrupting the database file. How do I download the DB files without corrupting them ? And my web Server is Mongoose embeded web server.

Edit - Posting code for reference

I am using React for my front end code. below is the code in my action

return axios
            .get("/backUp").then((response) => {
                const url = window.URL.createObjectURL(new Blob([response.data],{type: "application/octet-stream"}));
                const link = document.createElement('a');
                link.href = url;
                link.setAttribute("download", "BackUp.db");
                document.body.appendChild(link);
                link.click(); 
                dispatch(fileDownloadActionComplete(response.data));
            })
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!