Search code examples
c#androidbitmapandroidhttpclient

androdi upload bitmap to c# server from device


I have a bitmap or lets call it a file that I want to upload to my c# server, this bitmap (file) is captured via camera and saved into the sd card, but I have to no idea how exactly should I send it to my c# server. I don't know exactly what should I send in my request and what should be my server function's parameter to receive the file. Any help would be appreciated.

I've found this which shows how to send a file to server but it's using a php server side coding so I couldn't completely understand the process.

I'm not asking for code or anything, just a direction or explanation so I understand the concept. Thanks in advance


Solution

  • You need to do the following

    1. Create a api call that will accept the file and store that file somewhere on the server.
    2. You need to upload the image to the server with the help of the api call by passing the image file in it

    Uploading image to server example How do I send a file in Android from a mobile device to server using http?

    Refer this for uploading with progress bar