Adding getInputStream method

Adding getInputStream method