Class ByteArrayDownloadDataProvider

java.lang.Object
io.jmix.flowui.download.ByteArrayDownloadDataProvider
All Implemented Interfaces:
DownloadDataProvider

public class ByteArrayDownloadDataProvider extends Object implements DownloadDataProvider
  • Field Details

  • Constructor Details

    • ByteArrayDownloadDataProvider

      public ByteArrayDownloadDataProvider(byte[] data, int saveExportedByteArrayDataThresholdBytes, String tempDir)
      Constructor.
      Parameters:
      data - byte array
      saveExportedByteArrayDataThresholdBytes - threshold in bytes on which downloaded byte array will be saved to a temporary file to prevent HTTP session memory leaks. Use FlowuiProperties.getSaveExportedByteArrayDataThresholdBytes().
      tempDir - where to store the temporary file if saveExportedByteArrayDataThresholdBytes is exceeded. Use CoreProperties.getTempDir().
  • Method Details