Improved the byte[] and Stream overloads not to write to disk.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>