<img width="393" height="65" alt="Image" src="https://github.com/user-attachments/assets/71c874cb-a693-473a-95f5-6fafad007e49" /> <img width="686" height="142" alt="Image" src="https://github.com/user-attachments/assets/e6689bcf-6223-4e3a-8792-c97c212b5bd3" /> When opening a file with write mode, extra bytes are added to image files which corrupts them. ```rb #client.rb File.open("#{file[:path]}", "w") do |f| ``` to fix this, files should be opened in write binary mode. ```rb File.open("#{file[:path]}", "wb") do |f| ```