Skip to content

greendesertsnow/tika-2.9.1-docker-with-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

DOCKER

docker build --build-arg UID_GID="35002:35002" --build-arg TIKA_VERSION="2.9.1" -t apache/tika:2.9.1-full .
docker run -p 9998:9998 apache/tika:2.9.1-full

JS

const tikaServerUrl = "http://localhost:9998/tika";
async function toTika(filePath) {
  const fileData = await fs.promises.readFile(filePath);
  const response = await axios.put(tikaServerUrl, fileData, {
    headers: {
      "Content-Type": "application/octet-stream",
      Accept: "text/plain",
    },
  });

  return response;
}

toTika('./tika.png')

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published