Updated ExternalResourceInputStreamProvider to consume "socket" InputStream instead of already converted to in-memory ByteArrayInputStream