I have an iOS application (written in Swift) that retrieves data from a wcf service in JSON format. One of the data is an image saved as base64string . However, I was not able to convert base64string to NSData strong>.
My main goal is to completely convert base64string to blob so that I can save this to the database. On the other hand, if you know at least part of it, for example, from base64string to NSData strong>.
The following code will give you an idea of my table
let ItemsDB = Table("Items")
let idDB = Expression<String>("ID")
let nameDB = Expression<String>("Name")
let catDB = Expression<String>("Category")
let uomDB = Expression<String>("UOM")
let priceDB = Expression<Double>("Price")
let imageDB = Expression<Blob>("Image")
let actDB = Expression<Bool>("Active")
user5246938