Cargue la imagen del iPhone al servidor usando el servicio WCF usando SOAP

Hola, estoy usando los servicios wcf SOAP para mi aplicación y envío la solicitud como se muestra a continuación.

postStr = [NSString stringWithFormat:@"<?xml version=\"1.0\"?>\n"
           "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
           "<s:Body>\n"
           "<InsUpdDelActivityInfo xmlns=\"http://tempuri.org/\">\n"
           "<objEventsContent xmlns:d4p1=\"http://schemas.datacontract.org/2004/07/iCampuslite.Model.ActivityStream\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">\n"
           "<d4p1:ActCommentId i:nil=\"true\" />\n"
           "<d4p1:ActSubTypeCd i:nil=\"true\" />\n"
           "<d4p1:ActType>Status</d4p1:ActType>\n"
           "<d4p1:ActTypeCd>1</d4p1:ActTypeCd>\n"
           "<d4p1:ActivityAnswersList />\n"
           "<d4p1:ActivityComments />\n"
           "<d4p1:ActivityId i:nil=\"true\" />\n"
           "<d4p1:ActivityLike />\n"
           "<d4p1:ActivityName>%@</d4p1:ActivityName>\n"
           "<d4p1:ActivityStreamImagesBytes>%@</d4p1:ActivityStreamImagesBytes>\n"
           "<d4p1:AnswerDesc i:nil=\"true\" />\n"
           "<d4p1:AnswerId>0</d4p1:AnswerId>\n"
           "<d4p1:CommentDesc i:nil=\"true\" />\n"
           "<d4p1:CommentId i:nil=\"true\" />\n"
           "<d4p1:CreatedUserId>%@</d4p1:CreatedUserId>\n"
           "<d4p1:CreatedUserName i:nil=\"true\" />\n"
           "<d4p1:FileOrLinkName i:nil=\"true\" />\n"
           "<d4p1:IsLiked>0</d4p1:IsLiked>\n"
           "<d4p1:IsTotalSchool i:nil=\"true\" />\n"
           "<d4p1:LikeCount>0</d4p1:LikeCount>\n"
           "<d4p1:LinkImage i:nil=\"true\" />\n"
           "<d4p1:ObjTypeCdId i:nil=\"true\" />\n"
           "<d4p1:ObjTypeId i:nil=\"true\" />\n"
           "<d4p1:OperationMode>I</d4p1:OperationMode>\n"
           "<d4p1:OperationType i:nil=\"true\" />\n"
           "<d4p1:OperationTypeId i:nil=\"true\" />\n"
           "<d4p1:OrganizationId>%@</d4p1:OrganizationId>\n"
           "<d4p1:OtherActivityId i:nil=\"true\" />\n"
           "%@\n"
           "</objEventsContent>\n"
           "<ismobile>true</ismobile>\n"
           "</InsUpdDelActivityInfo>\n"
           "</s:Body>\n"
           "</s:Envelope>", statusText, [appDelegateObj.loginUserInfoDict valueForKey:@"a:UserId"], [appDelegateObj.loginUserInfoDict valueForKey:@"a:OrgId"], workspaceStr];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@iCampusliteMobileService/ActivityStreamSl.svc", appDelegateObj.baseURL]]];
NSString *messageLength = [NSString stringWithFormat:@"%lu", (unsigned long)[postStr length]];
[request addValue:@"text/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
[request addValue:@"http://tempuri.org/IActivityStreamSl/InsUpdDelActivityInfo" forHTTPHeaderField:@"SOAPAction"];
[request addValue:messageLength forHTTPHeaderField:@"Content-Length"];
[request setHTTPMethod:@"POST"];
[request setHTTPBody:[postStr dataUsingEncoding:NSUTF8StringEncoding]];
NSError *error = nil;
NSData *returnData = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:&error];

en la solicitud anterior hay un elementoActivityStreamImagesBytes cual esbase64binary parámetro tengo que pasar la imagen.

He intentado usar muchos formatos diferentes.

aquí está la captura de pantalla del servicio wcf

y aquí está el código del lado del servidor

public string byteArrayToImage(byte[] byteArrayIn,string fileName)
    {
        if (byteArrayIn != null)
        {
            ActivityStreamSl.LogMsg("Byte Array Count : "+byteArrayIn.Length.ToString(), "D:\\log.txt");
            var serverfile = "D:somepath\somepath\somefolder";
            var getfile = HelperClass.Filesavehelper(Constants.UploadPaths.ActivityStream, "testfilename.png", serverfile);

            FileStream file = new FileStream(getfile, FileMode.Create);
            file.Write(byteArrayIn, 0, byteArrayIn.Length);
            file.Close();
            file.Dispose();
            return getfile;
        }
        else
        {
            ActivityStreamSl.LogMsg("Byte array is null","D:\\log.txt");
        }
        return "";
    }

el servidor espera una matriz de bytes y no sé cómo enviarla? ¿Y no sé qué es un tipo de datos base64binary? ¿Tengo que enviar la cadena codificada en base64 o la matriz de bytes o solo datos de imagen desdeNSData *data = UIImageJPEGRepresentation([UIImage imageNamed:@"popular.png"], 0.7);

Cualquier ayuda es apreciable

Respuestas a la pregunta(2)

Su respuesta a la pregunta