Skip to content

corrupted downloaded files in windows #64

Open

Description

@jodinathan

Hi,

The lib is stating that the written was successful, however, the downloaded image file is corrupted.
Here are the original and the corrupted one.
It only happens in Windows (I only have windows 10 to test).
In Mac catalina the image is ok.

What can it be?

6fda137520191106100346
download

Activity

  1. Fatme commented on Nov 6, 2019

    @Fatme
    Contributor

    Hey @jodinathan,

    Can you give us more information how to reproduce the issue? What are the exact steps that we need to execute?

  2. jodinathan commented on Nov 6, 2019

    @jodinathan
    Author

    Our app takes a picture and saves it at this path: Documents\fotos\6fda137520191106100346.png.
    Then I execute the exe and send the below command to download it:

    C:\path\node\node_modules\ios-device-lib\bin\win32\ia32>ios-device-lib.exe
    ��{"deviceClass":"iPad","deviceColor":"1","deviceId":"xxx","deviceName":"iPad","event":"deviceFound","isUSBConnected":1,"isWiFiConnected":0,"productType":"iPad7,11","productVersion":"13.1","status":"Connected"}{ "methods": [ { "id": "8", "name": "download", "args": [ { "appId": "br.com.app", "deviceId": "xxx", "source": "Documents\fotos\6fda137520191106100346.png", "destination": "C:\path\img.png" } ] } ] }
    h{"deviceId":"xxx","id":"8","response":"File written successfully!"}^C

    The "C:\path\img.png" is corrupted while when the lib is executed within a macos using the same command, it downloads the image correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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