title: Flutter background image "Unable to decode bytes as UTF-8"
body: <p>I am working on a flutter app, and want to use a background image.  Here is my code so far which I got from the following stack overflow page:  <a href="https://stackoverflow.com/questions/44179889/flutter-sdk-set-background-image">Flutter SDK Set Background image</a></p>
  <pre><code>import 'package:flutter/material.dart';
  import 'backgroundpic.jpeg';
  
  void main() {
    runApp(MyApp());
  }
  
  class BaseLayout extends StatelessWidget{
    @override
    Widget build(BuildContext context){
      return Scaffold(
        body: Container(
          decoration: BoxDecoration(
            image: DecorationImage(
              image: AssetImage(&quot;backgroundpic.jpeg&quot;),
              fit: BoxFit.cover,
            ),
          ),
          child: null /* add child content here */,
        ),
      );
    }
  }
  
  </code></pre>
  <p>The issue is, when I run this app, I get a huge list of errors revolving around &quot;unable to decode bytes as UTF-8.&quot;</p>
  <p>Here is the list of errors:</p>
  <pre><code>lib/backgroundpic.jpeg:6:300: Error: Unable to decode bytes as UTF-8.   
  I also get a whole bunch of gibberish:
  
     ���F�'
  ��$�d�-��[+�5���7�Q�WoIt��s��r�d��OV�|ټ������7��V·BI�r&lt;�^_n�Ǳ����4��+M
  p�|��B�Ħ�k�ɣ�(�%u����岅�FZo����c�WK�qyy�j���KV�Eԫ:����T���n�Euocg)��
  ��e�jr�ч���N��������#�T~���=����EoqS(§)'����C
  J��di��͹�r�u���2�8{X^WJKKKs�s�f}J��:�Q���Y�ԗ;&gt;[3��1�Qp[n�               
  ��p�&gt;r��W���WVZ��9]D�\��]W��rjm�J-�w��L�f�)A¼8���{r[y��;�NIF�GM�n��ߩ��z��^
  �ֳ��a=��l��o�ѱ���5+�&amp;ӽ�M��8����Q���&lt;3KI����۞w��V����C�Z���#
                                                            $�X�e���
  ��OG����j��^�%H6�@��n
                       ��c9��M��.@�7��6.!
                                         ��x���Wx�A��m��[�co��&gt;   .��
  O��NI�Z'�_&quot;�h�gzm5%��wZ�7���L���-n\J��+�K���;�|���m)�_������֍���M���a#�
  V���5k�p�e�A}�#[a�h�N������ғ]�$�4����*�s2;A�*t�ݖ����g�r�;k��I��读o�p}��}�G^�
  �w�鲾cR�?�.���sl�r�~�
  �䮞�O���:��E^6�\�oCW&amp;ɩ�   
  </code></pre>
  <p>Can someone please help me out?  Thanks!</p>