shariltumin / esp32-cam-micropython-2022

MicroPython esp32-cam firmware with camera support compiled with esp-idf-4.4.0. Python script files for live streaming
MIT License
175 stars 33 forks source link

Not a JPEG file: starts with 0x2d 0x2d #4

Closed davefes closed 1 year ago

davefes commented 1 year ago

Got all the way down to this line in README.md:

wget http://10.0.0.46/foto -o foto1.jpeg

with my network 192.168.10.103 and encountered the above error. Google suggested it should start with FF D8 FF

dave@davef:~$ file foto1.jpeg
foto1.jpeg: ASCII text

Went to https://onlineasciitools.com/convert-ascii-to-image and I get this:

--2022-11-14 21:41:55-- http://192.168.10.100/foto Connecting to 192.168.10.100:80... failed: Connection refused.

192.168.10.103/webcam 192.168.10.103/snap 192.168.10.103/blitz all work.

curl http://192.168.10.103/foto --output foto1.jpeg works as well.

It seems to be a problem with wget.

davefes commented 1 year ago

Possibly the image file was corrupted before doing the wget.