small change to input stream read method. Cannot take a mutable byte array for GDReadStream. Converted it to something both NSInputStream/GDCReadStream understand.