Saving binary image as base64 string

Hi. I’d like to save a profile picture as a custom attribute (base64 string).
Is there max length limit for a custom attribute? There is an idea already created for saving binary image
https://support.okta.com/help/ideas/viewIdea.apexp?id=087F0000000BGPMIA4.

Thanks.
Brian.