How to use Apache Tika Server 2.5 as API and call this in .net6?

614 Views Asked by At

planning to use Apache Tika Server 2.5 in .net6. how can we use that and call from .net component.

1

There are 1 best solutions below

0
BChe On BEST ANSWER

This is how it's worked for me

Var Client=new Httpclient();     
string uriString="Your API endpoint Address here";
Using var stream=File.OpenRead(filename); Using var content= new MultiFormDataContent{{ new StreamContent (stream)}};  
HttpResponseMesage response=client.PostAsync(uriString,content).Result;