0

this is my code

 private fun initDesign(imageList: List<ImageList>) {
        //Initialize with empty data

        for (i in 0 until imageList.size) {

            val imageDataBytes = imageList.get(i).image
            val iD = Integer.parseInt(imageList.get(i).imageIndex)
            val  imageAsBytes : ByteArray  = Base64.decode(imageDataBytes,0)
            bitmaps !!.add(BitmapFactory.decodeByteArray(imageAsBytes, 0, imageAsBytes.size))
            imageID!!.add(iD)
        }
}

what was the wrong with this code

Vikasdeep Singh
  • 20,983
  • 15
  • 78
  • 104
skIndia
  • 59
  • 1
  • 7

0 Answers0