Saving file instead of ArrayBuffer