20.03.2025, 10:05
Hi! I want to copy a file from the internet in png or jpg format to the LM memory card for use. I don't know how to copy that file, can someone help me?
For example, copy from here:
https://img.icons8.com/fluency/48/home.png
Then I want to copy that icon to a folder. Is it correct to use it like this?
-----------------------
dataweb = "Code to get icon from website"
if data then
a=io.writefile('/home/apps/store/data/lmcloud/icon.png', dataweb)
end
log(a)
----------------------
I am so happy to thank everyone !
For example, copy from here:
https://img.icons8.com/fluency/48/home.png
Then I want to copy that icon to a folder. Is it correct to use it like this?
-----------------------
dataweb = "Code to get icon from website"
if data then
a=io.writefile('/home/apps/store/data/lmcloud/icon.png', dataweb)
end
log(a)
----------------------
I am so happy to thank everyone !