Hi All,
I am trying to upload an object contains one File and some string values (Object details are mentioned below) using backgrounduploader class. but I am unable to upload it using backgrounduploader. It is considering only File to upload to the service.
Object details :
public class Pictures
{
public string PictureName { get; set; }
public StorageFile file { get; set; }
public string username{ get; set; }
public string senderName { get; set; }
public string receiverName { get; set; }
}
BackgroundUploader uploader = new BackgroundUploader();
uploader.SetRequestHeader("Filename", file.Name);
uploader.Method = "POST";
UploadOperation upload = uploader.CreateUpload(uri, file);
as shown in the above, I need to send an object instead of file.
Is there any other mechanism to perform this operation? Could anyone please help me to figure out this problem?
Thanks in advance.