참고한 출처
1. https://stackoverflow.com/questions/29365145/how-can-i-encode-a-string-to-base64-in-swift
2. https://stackoverflow.com/questions/11251340/convert-between-uiimage-and-base64-string
if let data = image.pngData() {
let base64 = data.base64EncodedString()
self.dataModel.base64s[index] = base64
}
if let data = Data(base64Encoded: base64, options: .ignoreUnknownCharacters) {
let decodedImg = UIImage(data: data)
}