This is an automated email from the ASF dual-hosted git repository.

tilman pushed a commit to branch branch_3x
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/branch_3x by this push:
     new 9f4fb6c31 TIKA-4440: replace deprecated
9f4fb6c31 is described below

commit 9f4fb6c3137e1878eea434233e467d9527e34195
Author: Tilman Hausherr <[email protected]>
AuthorDate: Wed Jul 2 15:45:55 2025 +0200

    TIKA-4440: replace deprecated
---
 tika-core/src/main/java/org/apache/tika/embedder/ExternalEmbedder.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/tika-core/src/main/java/org/apache/tika/embedder/ExternalEmbedder.java 
b/tika-core/src/main/java/org/apache/tika/embedder/ExternalEmbedder.java
index 26cef4473..c58d57345 100644
--- a/tika-core/src/main/java/org/apache/tika/embedder/ExternalEmbedder.java
+++ b/tika-core/src/main/java/org/apache/tika/embedder/ExternalEmbedder.java
@@ -427,7 +427,7 @@ public class ExternalEmbedder implements Embedder {
                 } catch (InterruptedException ignore) {
                 }
                 // The command is finished, read the output file into the 
given output stream
-                InputStream tempOutputFileInputStream = 
TikaInputStream.get(tempOutputFile);
+                InputStream tempOutputFileInputStream = 
TikaInputStream.get(tempOutputFile.toPath());
                 IOUtils.copy(tempOutputFileInputStream, outputStream);
             }
         } finally {

Reply via email to