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.
Import ByteArrayInputStream
from the java.io
package so that the unqualified class is available to the application:
import java.io.ByteArrayInputStream;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With