Reverting a binary data into ASCII

Hi, we need help in processing our data. We’ve been trying to use Gridfs since our data is larger than than 16MB. However, reverting the binary data into ASCII or Utf-8 is getting tough to us. Any help around on how to revert the binary coming from Gridfs ?

Thanks
NB