Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as unsolved with 1 replies, 0 views
Looking at my own entry here makes me wonder... there seem to be 3 possible error points
1) Is this the right way to get the data representation of an image?
let image = UIImage(named: "BartSimpson");
let imagedata = image?.jpegData(compressionQuality: 1)
2) is this the right way to pass the data to a function?
= Attribute.createPhotoAttributeFor(item: item,
imageData: imagedata!)
where
class func createPhotoAttributeFor(item: Item, imageData: Data) -> Attribute {
3) is this the right way to reference the data?
attribute.imageD = imageData // attribute value