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

java - unable show chart in xls document using jasper reports -

javascript - Slick Slider width recalculation -

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