You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "suchendra (Jira)" <ji...@apache.org> on 2020/03/11 07:21:00 UTC
[jira] [Updated] (TIKA-3065) Not able to parse the document with
inline image
[ https://issues.apache.org/jira/browse/TIKA-3065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
suchendra updated TIKA-3065:
----------------------------
Description:
I am using apache tika in my project to detect the file extension. I am using Scala for development.
Below is the code,
{code:java}
// code placeholder
val sinkIs = StreamConverters.asInputStream(60 seconds)
val is = data.runWith(sinkIs)
val tikaStream = TikaInputStream.get(is)
val mediaType = new Tika().detect(tikaStream, fileName)
val extension = MimeTypes.getDefaultMimeTypes.forName(mediaType)
print("extension: " + extension.getExtension)
{code}
I have a API which upload the files and gives back the extension as response.
I have attached the file I used to upload. But I am facing the problem with all types of doc which contains the image.
was:
I am using apache tika in my project to detect the file extension. I am using Scala for development.
Below is the code,
{code:java}
// code placeholder
val sinkIs = StreamConverters.asInputStream(60 seconds)
val is = data.runWith(sinkIs)
val tikaStream = TikaInputStream.get(is)
val mediaType = new Tika().detect(tikaStream, fileName)
val extension = MimeTypes.getDefaultMimeTypes.forName(mediaType)
print("extension: " + extension.getExtension)
{code}
I have a API which upload the files and gives back the extension as response.
I have attached the file I used to upload. But I am facing the problem with all types of doc which contains the image. Basically it stuck at POICSContainerDetector's detect method.
> Not able to parse the document with inline image
> ------------------------------------------------
>
> Key: TIKA-3065
> URL: https://issues.apache.org/jira/browse/TIKA-3065
> Project: Tika
> Issue Type: Bug
> Affects Versions: 1.23
> Reporter: suchendra
> Priority: Major
> Attachments: 2.pdf
>
>
> I am using apache tika in my project to detect the file extension. I am using Scala for development.
> Below is the code,
> {code:java}
> // code placeholder
> val sinkIs = StreamConverters.asInputStream(60 seconds)
> val is = data.runWith(sinkIs)
> val tikaStream = TikaInputStream.get(is)
> val mediaType = new Tika().detect(tikaStream, fileName)
> val extension = MimeTypes.getDefaultMimeTypes.forName(mediaType)
> print("extension: " + extension.getExtension)
> {code}
> I have a API which upload the files and gives back the extension as response.
> I have attached the file I used to upload. But I am facing the problem with all types of doc which contains the image.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)