FileUpload as Base64 String

I need to save a ZIP in the DB. I would like to use the FileUpload in the form for this. How can I save a Base64 hash in the DB instead of the path of the file?
Was this page helpful?