updated code for parsing base to now return byte stream obj instead of
string.