Skip to content

Store small 'view' files in SQLite containers #2607

@lfcnassif

Description

@lfcnassif

Continuation of #174. We can target:

  1. HTML reports produced by Parsers via MakePreviewTask
  2. HEIC and other image types configured to generate a faster rendering preview
  3. Video mosaics produced by VideoThumbTask
  4. Other things stored in iped/view folder, not sure if we have more..

In ExportFileTask, we use a threshold of 16MB to store small items into SQLite, because the Xerial-sqlite library copies the whole BLOB to memory when reading it, even if using the InputStream API, unfortunately... For larger files, we kept them in case folder. It also helps the HexViewer to work faster, otherwise it would have to wait large files to be copied from SQLite to a temp folder before rendering the content, since it needs the whole data to be available because of its SEEK feature.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions