Could not read camera Local File image from file

I use ESP32-CAM with PIR sensor
So i want to save image file when motion detected.
but there was an error like ‘Could not read camera Local File image from file: /config/www/images/image.jpg’

  # HA접속시 표시되는 이름
  name: LAB2
  - /config/www/images

# Configure a default setup of Home Assistant (frontend, api, etc)
    #file_path: /config/www/images/cam_snapshot.jpg

  - platform: local_file
    #name: lubacam_snapshot
    file_path: /config/www/images/image.jpg

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url:

# Text to speech
  - platform: google_translate

#group: !include groups.yaml
#automation: !include automations.yaml
#script: !include scripts.yaml
#scene: !include scenes.yaml

thank you and sorry for my english

The local_file camera integration reads an image in to home assistant and displays it as a camera.

The camera snapshot service is how you save a camera image.