This project is a simple React application that demonstrates how to handle binary files using the File API.
-
Clone the repository:
git clone https://github.com/yourusername/binary-file-example.git cd binary-file-example -
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and navigate to
http://localhost:3000to see the app in action.
- Upload a binary file using the file input to see its content as a byte array.
To create a production build, run:
npm run buildThis will generate a build folder with all the necessary files.