Example #1
0
        public void Convert(DBField sourceField, DBField destinationField, FieldValue sourceValue, FieldValue destinationValue)
        {
            switch (destinationField.Storage)
            {
            case FldStorage.AnsiBlob:
                destinationValue.Value = BlobType.createFromString(string.Empty, BlobType.CONTENT_TYPE_ANSI);
                break;

            case FldStorage.UnicodeBlob:
                destinationValue.Value = BlobType.createFromString(string.Empty, BlobType.CONTENT_TYPE_UNICODE);
                break;

            case FldStorage.Blob:
                destinationValue.Value = BlobType.createFromString(string.Empty, BlobType.CONTENT_TYPE_BINARY);
                break;
            }
            destinationValue.Value = BlobType.copyBlob(destinationValue.Value.ToString(), sourceValue.Value.ToString());
        }