added methods to File Service to save files from byet array