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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -