0

Why is this not working?

There are two codes here: https://code.sololearn.com/cCR4k69Sm14C/?ref=app the second one prints an image in jpg form while the first prints it as a byte. How to change byte to jpg? the byte code is not wrong it worked in my laptop

28th Jul 2021, 6:07 AM
Harsha S
Harsha S - avatar
6 Antworten
0
It works just fine. Scroll ALL the way down
28th Jul 2021, 6:09 AM
Slick
Slick - avatar
0
Slick there are two codes there both code contain different images The first code is a math equation which is not printed in jpg form The second is some wallpaper which is being printed as a jpg
28th Jul 2021, 6:12 AM
Harsha S
Harsha S - avatar
0
Right, but thats only byte code. Have you tried "cat"ing the image to see what the output is?
28th Jul 2021, 6:13 AM
Slick
Slick - avatar
0
no, how to do it
28th Jul 2021, 6:14 AM
Harsha S
Harsha S - avatar
0
If your on mobile, open termux, find the image, and type: cat <image filename> | less Then you can see what it's made out of. And even if the byte code is correct, you just write the string to a file in bytes and read it back. It'll just give you the byte code right back
28th Jul 2021, 6:18 AM
Slick
Slick - avatar
0
oh okk Thank you
28th Jul 2021, 6:19 AM
Harsha S
Harsha S - avatar