public bool TransferResources(ResourceTransfer[] resources)
        {
            //encrypt login and password
            string loginName = "";
            string pass = "";
            getloginAndPass(UserId, ref loginName, ref pass);
            string _url = getWSUrl(this.Url);

            RepositoryWebservice repo = new RepositoryWebservice(_url);
            repo.Credentials = new System.Net.NetworkCredential(loginName, pass);

            int totalTransferSize = 0;

            foreach (var rt in resources)
            {
                totalTransferSize += rt.Resource.ResourceContents.Length;
                rt.Resource.ResourceContents = Compression.Compress(rt.Resource.ResourceContents);
                rt.Resource.ResourceAsBase64 = Base64Converter.ConvertToBase64(rt.Resource.ResourceContents);
                rt.Resource.ResourceContents = new byte[0];
            }

            bool transfered = false;
            try
            {
                transfered = repo.TransferResources(this.SessionKey, resources, loginName, pass);
            }
            catch (Exception ex)
            {
                RevisionLog.Instance.AddItemEntry(resources[0].ItemID, this.GetType(), "resources", ex.ToString(), LogItemEntryType.Error);
            }

            repo.Dispose();
            return transfered;
        }