api.net-6.0apache-tikatika-server

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


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


Solution

  • 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;