After I use the following command,
pngString="$(cat example.png)" echo -n "$pngString" > tmp.png
I can't open the tmp.png as a PNG file. Maybe some information is lost when I use
$pngString to store the image file.
So the question is: How can I store the complete image information using a variable in bash script?