[ https://issues.apache.org/jira/browse/TIKA-2849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16822002#comment-16822002 ]
Tim Allison commented on TIKA-2849: ----------------------------------- Vs those applications that had {{[Content_Types].xml}} as the first entry... ||Files||Application|| |224716|Microsoft Office Word| |55105|Microsoft Excel| |43391| | |35188|Microsoft Office PowerPoint| |13017|Microsoft Macintosh Word| |10300|Microsoft Office Outlook| |2920|Microsoft Macintosh PowerPoint| |2166|Microsoft Macintosh Excel| |1269|Microsoft PowerPoint| |910|Microsoft Word 12.0.0| |463|Microsoft Word 12.1.0| |198|PHPWord| |168|Microsoft Access| > TikaInputStream copies the input stream locally > ----------------------------------------------- > > Key: TIKA-2849 > URL: https://issues.apache.org/jira/browse/TIKA-2849 > Project: Tika > Issue Type: Bug > Affects Versions: 1.20 > Reporter: Boris Petrov > Assignee: Tim Allison > Priority: Major > > When doing "tika.detect(stream, name)" and the stream is a "TikaInputStream", > execution gets to "TikaInputStream#getPath" which does a "Files.copy(in, > path, REPLACE_EXISTING);" which is very, very bad. This input stream could > be, as in our case, an input stream from a network file which is tens or > hundreds of gigabytes large. Copying it locally is a huge waste of resources > to say the least. Why does it do that and can I make it not do it? Or is this > something that has to be fixed in Tika? -- This message was sent by Atlassian JIRA (v7.6.3#76005)