https images not displaying

Place this code in your functions.php. It will filter all of the content before serving on application layer.

<?php
    function filterContent($content)
    {
        $upateURL = array
            (
            'http://www.example.com/wp-content/uploads' => 'https://www.example.com/wp-content/uploads',
        );

        foreach ($upateURL as $key => $value)
        {
            $content = str_replace($key, $value, $content);
        }
        return $content;
    }
    add_filter('the_content', 'filterContent');
?>