LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to browse and update a file in html by using labview?

Solved!
Go to solution

Hello,guys,I am a newcome here.I have a trouble  to handle just as the title,please give me some directions,THX!

0 Kudos
Message 1 of 10
(2,605 Views)

So what do you want to update in html?


CLD Using LabVIEW since 2013
0 Kudos
Message 2 of 10
(2,593 Views)

A *.bin file.

0 Kudos
Message 3 of 10
(2,590 Views)

So you want to update the location or name of a *.bin file in html?


CLD Using LabVIEW since 2013
0 Kudos
Message 4 of 10
(2,586 Views)

OK,yes,in fact ,its name is FW.BIN.Is it important?

0 Kudos
Message 5 of 10
(2,582 Views)

I still struggle to understand what you want to do! So please explain a bit more.

Rolf Kalbermatter
My Blog
0 Kudos
Message 6 of 10
(2,580 Views)

I  am sorry for my bad express.I just want to finish the following process:

1、browse the file,what is called fw.bin;

2、submit the form using the update button. 

0 Kudos
Message 7 of 10
(2,574 Views)

you need to upload your html file so that we can better uderstand.


CLD Using LabVIEW since 2013
0 Kudos
Message 8 of 10
(2,573 Views)
Solution
Accepted by topic author david_cow

Most likely your device expects a HTTP Post (or maybe HTTP Put) command with the binary file as contents. You can create a HTTP Post transaction with the HTTP Client library in LabVIEW.

 

What you need to find out is the url that the device expects for the upload. That can be retrieved from the HTML file that you see in your browser by looking what url and command is used to post the file when you click your upload button.

 

A more automated way would first use a HTTP Get to retrieve your firmware update page on the device, then parse the returned HTML string for the relevant url and command and then issue the HTTP Put or HTTP Post with your firmware file.

HTTP Post VI.png

 

Rolf Kalbermatter
My Blog
0 Kudos
Message 9 of 10
(2,566 Views)

Thank you very much!

0 Kudos
Message 10 of 10
(2,551 Views)