Example Code

Download An Image From A Website And Show It On A LabVIEW Frontpanel

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.


  • LabVIEW

Code and Documents



This example demonstrates how to download an image from a website and show it on the Frontpanel.



It is sometimes handy to show an image from a website on the Frontpanel. To do so, you need to download the image from the website and show it in a LabVIEW picture control. There is no out-of-the-box function for this use case, so you have to implement the function by yourself.

You can use the DataSocket Read.vi or the HTTP VIs to download the image. This example use the HTTP VIs, because this VIs can store the image into a file without additional VI calls.




  • LabVIEW Base Development System 2012 (or compatible)
  • If running in a Real-Time context, you will need the LabVIEW Real-Time Module 2012 (or compatible)


  • No hardware is necessary to use this example VI


Steps to Implement or Execute Code

  1. Download and open the attached VI
  2. Run the program


Additional Information or References

Download And Show Image From Website - Front Panel.png
Download And Show Image From Website - Front Panel.png


**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
LabVIEW Champion
Choose Movement Consulting

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Active Participant
Active Participant

good VI, served me for an application of an IP camera that had not been resolved

Ing. Jonathan E. Cruz Ortiz


Cel : (+57) 3173669343 - (+57) 3124451894

Active Participant
Active Participant

It's frustrating that you need to save the file to disk only to read it back in and display it. Does LabVIEW really have no way to display a JPEG coming from memory?

Marcos Kirsch
Chief Software Engineer
NI Driver Software