Retrieve the image from an URL and save it in an array?

Hello.

I am a beginner in C + +, and I need help.

I am trying to retrieve an image from its URL as an array where each box represents the pixel value of the image.

Could someone show me how to do this please?
To do this you'd need to use multiple libraries... Something for getting data from a URL, and something for bitmap images. This isn't the easiest thing to describe to a complete beginner who has just gotten through Hello World.

A good place to start might be SFML which provides a series of very easy-to-use classes to wrap more complicated OS-specific libraries.

This might help you figure out how to extract a specific file from a URL:
http://sfml-dev.org/tutorials/2.1/network-http.php

This might help you figure out how to load the picture.
http://sfml-dev.org/tutorials/2.1/graphics-sprite.php
Thank you, I will take a look.
If you find this to be a bit tough, you might want to try a higher-level lanauge (Visual Basic or Python). These require less low-level work and manipulation because much of the work has already been done for you.
Topic archived. No new replies allowed.