core/camel-api/src/main/java/org/apache/camel/spi/Resource.java
static Resource fromBytes(String location, byte[] content) {
        return new Resource() {
            @Override
            public String getLocation() {
                return location;
            }

            @Override
            public InputStream getInputStream() throws IOException {
                return new ByteArrayInputStream(content);
            }
        };
    }
/**
     * Create a resource from bytes.
     */
Create a resource from bytes.
Create a resource from bytes .
static Resource fromBytes(String location, byte[] content) {
        return new Resource() {
            @Override
            public String getLocation() {
                return location;
            }
            @Override
            public InputStream getInputStream() throws IOException {
                return new ByteArrayInputStream(content);
            }
        };
    }
static Resource fromBytes ( String location , byte [ ] content ) { return new Resource ( ) { @ Override public String getLocation ( ) { return location ; } @ Override public InputStream getInputStream ( ) throws IOException { return new ByteArrayInputStream ( content ) ; } } ; }
Create a resource from bytes.
Create a resource from bytes .