protected EncodedImage getEncodedImage(InputStream inputStream, int length) throws IOException {
    return getByteBufferBackedEncodedImage(inputStream, length);
  }
Creates a memory-backed encoded image from the stream. The stream is closed.
imagepipeline/src/main/java/com/facebook/imagepipeline/producers/LocalFetchProducer.java