---
# System prepended metadata

title: '`Sending HTML File `'

---

# `Sending HTML File `

### `Goal`
**Sending html file through BT LE Extended Advertising**

### `How`

1.  Convert input file (filehtml) to string

    ![](https://i.imgur.com/07fsLhC.png)
    
2.  Convert string to hex array

    ![](https://i.imgur.com/mWGsZTv.png)



### `Result`

1. In cmd, create any html (now we just name test.html)
    Type ".\hcitool.exe test.html"

    ![](https://i.imgur.com/TFLRYUE.png)

2. Using Ellisys to hear the sending package

    ![](https://i.imgur.com/1jP2cgl.png)

    ![](https://i.imgur.com/ckMvbKi.png =80%x)

3. Click any bottom to close the exe

    ![](https://i.imgur.com/xtCN6Eh.png)

---
### `Reference`

https://stackoverflow.com/questions/12771347/how-to-read-from-file-in-command-line-arguments-otherwise-standard-in-emulate

https://stackoverflow.com/questions/12183932/read-a-html-file-into-a-string-variable-in-memory



