How to get file buffer from file

  1. I want to save file in specific folder.
  2. I want to upload this file on aws for that i need to pass buffer data in aws upload method.