I have method which is going return the values that are going to displayed as text string.So what i'm doing is converting to ByteArrayInputStream.
public String method() {
inputStream = new ByteArrayInputStream(prod().getBytes());
return method;
}
prod() is a method which going to return the values. It is giving me an error ByteArrayInputStream cannot be resolved to a type. Please advise.