title: how to place video record from testcontainers to allure-report
body: <p>This approach don't work, I tried converting FILE to InputStream and vise versa. maybe someone found yourself with the same trouble</p>
  <pre><code>static File file = new File(&quot;videos&quot;);
  
  @Container
  public static final BrowserWebDriverContainer browser =
          new BrowserWebDriverContainer()
                  .withCapabilities(DesiredCapabilities.firefox())
                  .withRecordingMode(
                          BrowserWebDriverContainer.VncRecordingMode.RECORD_ALL,
                          file,
                          VncRecordingContainer.VncRecordingFormat.MP4);
  
   @Test
   void tempTest() {
      @(&quot;.someId&quot;).click;
   }    
  
  
  @AfterAll
      static void clean_up() throws FileNotFoundException {
          InputStream vid = new FileInputStream(file.toString());
          Allure.addAttachment(&quot;video&quot;, &quot;video/mp4&quot;, vid, &quot;mp4&quot;);
  
          WebDriverRunner.closeWebDriver();
      }
  </code></pre>
  <p>Core problem how to place</p>
  <pre><code>.withRecordingMode(                        
          BrowserWebDriverContainer.VncRecordingMode.RECORD_ALL,
          &quot;THIS VIDEO DIRECTORY TO&quot;,
          VncRecordingContainer.VncRecordingFormat.MP4);
  
  Allure.addAttachment(&quot;video&quot;, &quot;video/mp4&quot;, HERE, &quot;mp4&quot;);
  </code></pre>