Get the CONTENT , Keywords, Title of a page using Apache TIKA?

You are reading the same stream multiple times. After you read a stream fully, you cannot read it again. Do something like HttpResponse response = client.

Execute(request); HttpEntity entity = response.getEntity(); //stackoverflow.com/questions/1264709/conv... byte content = streamToByteArray(entity.getContent()); String ct = t. ParseToString(new ByteArrayInputStream(content)); System.out. Println(ct); Metadata md = new Metadata(); Reader r = t.

Parse(new ByteArrayInputStream(content), md); System.out. Println(md).

You are reading the same stream multiple times. After you read a stream fully, you cannot read it again. Do something like, HttpResponse response = client.

Execute(request); HttpEntity entity = response.getEntity(); //stackoverflow.com/questions/1264709/conv... byte content = streamToByteArray(entity.getContent()); String ct = t. ParseToString(new ByteArrayInputStream(content)); System.out. Println(ct); Metadata md = new Metadata(); Reader r = t.

Parse(new ByteArrayInputStream(content), md); System.out. Println(md).

And where we can use contents..? – Raihan Jamal Jul 16 at 3:24 updated, content is a byte – sbridges Jul 16 at 3:29 I have to create a method streamToByteArray or I have to include something.. As I am getting error on that... – Raihan Jamal Jul 16 at 3:34 stackoverflow. Com/questions/1264709/… – sbridges Jul 16 at 3:37 @sbridegs, thanks for your help.. Its working now... :) – Raihan Jamal Jul 16 at 3:40.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions