Minor optimization to avoid allocating an array where an inputstream would also work.
Created attachment 32945 [details] patch with proposed changes
Thank you for the patch - applied with r1693754