reschke commented on PR #2744:
URL: https://github.com/apache/jackrabbit-oak/pull/2744#issuecomment-4024402199

   This:
   
   ```
       private Object[] createTempFileAndReturnStream() throws Exception {
           File tempFile = File.createTempFile("test", ".txt");
           System.out.println(tempFile.getAbsolutePath());
           try (FileOutputStream fos = new FileOutputStream(tempFile)) {
               fos.write("hello world".getBytes());
           }
           InputStream fis = Files.newInputStream(tempFile.toPath(), 
StandardOpenOption.DELETE_ON_CLOSE);
           return new Object[]{fis, tempFile};
       }
   ```
   seems to work.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to