    

 ## On this page

  

 

 # getResourceAsStream

 Last update: 16.07.2025 

public [getResourceAsStream](get-resource-as-stream.md)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [InputStream](https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html)

#### Return

An input stream for reading the resource, or `null`if the resource could not be found

#### Parameters

nameThe resource name