json - How to convert java byte array to swift nsdata? -
i json response java rest webservice contains image binary data , can't convert binary data , show image in uiimageview
i try in swift returns nil
let image = [int]() let uintarray = intarray.map { uint(bitpattern: $0) } let dataimage = nsdata(bytes: uintarray, length: uintarray.count)
Comments
Post a Comment