How can a web program store data and read from an external file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How can a web program store data and read from an external file?

Hi, I want to store the weights of a neural network I trained using javascript (on my computer). After training is 100% complete I want to upload this to the web and I want the program to read from the file. How can I do this? (I only know html, js, python and java). I don't mind learning a bit of new languages if it is required.

23rd Feb 2019, 8:14 PM
Zokalyx
Zokalyx - avatar
4 Answers
+ 4
Accessing client side file system from a web browser has been a huge taboo, for security reasons, however there are some options and workarounds available due to HTML5. This article has all the lengthy details. TL;DR You can do it in JavaScript. https://diveintohtml5.info/storage.html
25th Feb 2019, 7:36 PM
Tibor Santa
Tibor Santa - avatar
+ 1
I'm not completely sure I understood the question,but if you want to store data and read it,such as users and password,you will need to work with a database on a server, SQL can be useful for this
24th Feb 2019, 4:05 AM
Alandec
+ 1
Guys,when you jus throw a question without information is very difficult to answer properly. beniginus felix (Sir Beni) ,I have no idea of your project or how you're getting the age of the participants,so, all I can say is,set a condition where IF your variable (the one storing the age) < 18 then a warning that explains that the person can't continue
25th Feb 2019, 2:20 AM
Alandec
- 1
hellow please i need to inerter the validation rule in my survey script to restrict younger respondents below 18 to paticipate
24th Feb 2019, 2:56 PM
beniginus felix (Sir Beni)
beniginus felix (Sir Beni) - avatar