2023-11-29 09:38 AM - last edited on 2024-09-17 01:19 PM by Doreena Deng
In order to create surface through the plugin we would like to fetch the texture image from a given URL. How can we download the image through ArchiCAD C++ code?
2023-11-29 10:10 AM
You can use cUrl lib or built in HTTP classes.
2023-11-29 12:57 PM
Any options within the DevKit library? Since we are getting linker error in Windows OS when using curl.h
Found an example to GET json response in Communication_ClientTest but nothing downloads a file.
clientConnection->SetTimeout (requestTimeout);
clientConnection->Send (request);
clientConnection->Receive (response);
2023-12-05 05:59 PM
Hi,
Please look at the `Do_DownloadWeatherData()` example in Goodie_Functions.cpp.
Best, Akos
2023-12-11 10:48 AM
Hello @Akos Somorjai , Just another question on the Do_DownloadWeatherData.
2023-12-11 03:25 PM
Hi,
`DBPrintf ()` prints its output to the debugging window/console, you can safely ignore that.
The URL is just an example, feel free to submit data to any other website.
Best, Akos