Something missing- trying to change image on background panel

I want to be able to change the image component of a panel in code(C#):
Getting a null reference, I suspect because it can’t find the file to use. Speaking of, does anyone know the default image structure of an Android device?

Here is the code:

	public Image image;
	public Sprite sprite;

	void Start()
	{
		
		image=GetComponent<Image>();
		sprite=Resources.Load<Sprite>("Assets/Sprites/sf1.jpeg");
		Debug.Log(sprite);
		Debug.Log(image); Both null at this time
		test ();
	}

void test()
	{
		image.sprite=sprite;
	}
Nothing changes. Where did I go wrong?

Thanks!

sprite=Resources.Load(“Assets/Sprites/sf1.jpeg”);
Resources.Load does not take extensions and your file needs to be in a Resources folder so i think this should work:

sprite=Resources.Load<Sprite>("Assets/Resource/Sprites/sf1");

I don’t know why image is null. Are you sure this gameObject has an image component? Is it not in a child gameobject?