Skip to content

DownloadFile #128

@rwb196884

Description

@rwb196884

Is this supposed to work?

            List<MediaDevices.MediaDevice> devices = MediaDevices.MediaDevice.GetDevices().ToList();
            MediaDevices.MediaDevice d = devices.Single();
            d.Connect();

            foreach (string f in d.GetFiles("/Internal shared storage/DCIM/Camera"))
            {
                string filename = f.Split('\\').Last();
                
                using(MemoryStream ms = new MemoryStream())
                {
                    d.DownloadFile(f, ms);

It gives System.Runtime.InteropServices.COMException HResult=0x80070141 Message=The device is unreachable. (0x80070141).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions