Hi All,
How can I display or save an image file from the URL that returns an Image. I'm using system.net.httpClient function.
Thanks in advance.
Hi All,
How can I display or save an image file from the URL that returns an Image. I'm using system.net.httpClient function.
Thanks in advance.
Is there a reason you cannot put the URL itself in an Image Component? Let the browser display it?
If there is such a reason, there are non-simple methods that can be used:
Convert the image content into a data URL and supply that to your Image Component.
Save the image content in a file in your gateway, and use WebDev to expose that file at a URL, which you then feed to your Image Component.
Save the image content as a "blob" in your database, and use WebDev or my free Blob Server module to expose that blob at a URL, which you then feed to your Image Component.
Hi pturmel,
After I used system.net.httpClient from URL1 it returns another URL2, for me to use and add headerValues = myAuthentication, then from URL2 it returns from below image:
That's the binary image content, as one would expect. You need to save that (as bytes), or encode into a data URL.