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

806
Views
Why is it not possible to use Sqlite in Blazor WebAssembly?

For a platform solution, built with blazor wasm, I'm searching for a light weight storage solution, that is capable of storing big datasets on client side. We came up with the idea of using Sqlite. I literally couldn't find any information about doing so, expect this Stackoverflow question from today, which mentions that it is not possible. Any explanations on this?

Thanks a lot!

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Your Blazor WebAssembly C# code still runs in the sandbox of the browser, that means it is not allowed to open files on the local drive.

Blazor WebAssembly has the same access to the machine as any regular website.

Even if someone was to port SQLite to WebAssembly you would not be able to open a database file.

For storage on the client computer you are limited to Local Storage, it is limited to 5 MB (might be different per browser brand) and can only contain strings. But it is not a reliable option as the data will be removed when the users clears the cache, browser history etc..

The only option you have is storing data on the server.

over 4 years ago · Santiago Trujillo Report

0

As of .NET 6, you can use include native dependencies in Blazor WebAssembly, one example in fact being SQLite. See example code here: https://github.com/SteveSandersonMS/BlazeOrbital/blob/6b5f7892afbdc96871c974eb2d30454df4febb2c/BlazeOrbital/ManufacturingHub/Properties/NativeMethods.cs#L6

over 4 years ago · Santiago Trujillo Report
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!