how to download a file in xamarin android

i am using a web service which returns the file from db.
now i have to use that file in byte[] and download it using xamarin android .
How can i do that?

Tagged:

Answers

  • CheesebaronCheesebaron DKInsider, University mod

    You could use HttpClient to get that for you.

  • LijoJosephLijoJoseph USMember

    Suppose i have a file like this:

    var bytes=ref.FileReq(1); // fileReq is the name of the method which returns a file in bytes on passing the fileid as a parameter

    Now what i require is to download that file in my android phone using xamarin.android
    please help me with the code.
    thank you

Sign In or Register to comment.