I'd like to download images from an web page and save them localy on my system and then connect them to an item in AX. Does anyone have an example how to download images form the internet with AX 2009?
Asked
Active
Viewed 644 times
2 Answers
1
You will probably need to use the .Net Framework for this, calling the System.Net.HttpWebRequest library from X++.
Once you have that, converting the response to your image file will be a bit trickier, but only a little bit :)
0
I did something similar in the past. Download the file with .NET and save it on a shared folder on the filesistem, then return the full path to the newly created file. Then you can call to the DLL from AX as a "Reference" and if it succeed read the file from the path received, do whatever you need with it and finally delete (or run a periodic batch job to delete old files).
It worked fine for me that way.

j.a.estevan
- 3,057
- 18
- 32