Skip to content

pull command opening file in "w" mode causes image corruption #61

@sandpail

Description

@sandpail
Image Image

When opening a file with write mode, extra bytes are added to image files which corrupts them.

#client.rb
File.open("#{file[:path]}", "w") do |f|

to fix this, files should be opened in write binary mode.

File.open("#{file[:path]}", "wb") do |f|

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions