Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to protect pic. in blob fields
Message
From
05/10/2011 05:17:29
 
 
To
05/10/2011 04:58:35
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01525343
Message ID:
01525632
Views:
40
>>
>>FUNCTION XORDATA(data,Key)
>>	RETURN BITXOR(m.Data,REPLICATE(m.Key,CEILING(LEN(m.Data)/LEN(m.Key))))
>>ENDFUNC
>>
>
>This won't work. BitXor() works with integers only, not strings.
>
>Which is a shame - it should.


It does work on Blob fields - you may need a cast
return bitxor( cast(m.data as blob), cast(otherdata as blob))
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform