Skip to content

Download File #50

@sayazaaa

Description

@sayazaaa

How do I download a file from the server?
I tried:

val dowCommand =  SingleCommand(
            "ftinitdownload", ProtocolRole.CLIENT)
        dowCommand.add( CommandSingleParameter("clientftfid", "0"))
        dowCommand.add( CommandSingleParameter("name", "/icon_${channelInfo.iconId}"))
        dowCommand.add( CommandSingleParameter("cid", "${channel.id}"))
        dowCommand.add( CommandSingleParameter("cpw", ""))
        dowCommand.add( CommandSingleParameter("seekpos", "0"))
        dowCommand.add( CommandSingleParameter("proto", "0"))
        val initDownload = client.executeCommand(
            dowCommand
        ).get().toList()

but it returns nothing
What should I do?

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