Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

308
Visualizações
Chrome extension: Best way to store files in the browser (non-disk)

In my chrome extension, I would like to store files in the browser (from background script) but not on disk, as I would like to read and erase the files quickly. Is the best solution to use blob URLs? If so, how much data can I store as blob URLs? Or should I just store the file contents in an array in the background script?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Blob is probably the best choice. They act like files- the File() constructor inherits properties from it. Arrays are memory and resource intensive for large data storage, but an Int8Array or Uint8Array would probably work if necessary, too. TypedArrays are generally faster than regular arrays. Blobs can have sizes greater than 128 MB (it varies across platforms, from 128 MB to 640 MB), which would probably fill most requirements. However, if the memory isn't available, and in other rare cases, the Blobs will be written to disk. I don't think Blobs were designed for high amounts of writing.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda