Read input stream from intent data.