You have to build the multipart/form-data content yourself and send it as a stream to your XData service. Reference: