tika-python
tika-python copied to clipboard
Have `.from_file()` methods accept file objects as input
Currently the .from_file() methods only accept urls and filepaths as input. I would like it to accept file objects as well so applications that have already opened the files don't have to write the file again for Tika to consume. I am willing submit a pull request that implements this feature.
thanks @edwin-lai i'll watch for the PR!
@edwin-lai Can you please make sure that when you accept an open file stream from an outside source, you leave the stream open? Tika's auto-close behavior is unexpected.
Hey,
Is this implemented already, i have file as byte code and i want to extract content from that without writing that byte content to a file, can we achieve that in pyhton?
Thanks Deepak Jindal [email protected] 7838068727
not to my knowledge, no @deepakjindal90
fixed in #316