def download()

in app/infra/datasource/ImageStorage.scala [16:22]


  def download(url: String, filePath: String) = {
    val stream = new URL(url).openStream
    val buf = Stream.continually(stream.read).takeWhile(-1 !=).map(_.byteValue).toArray
    val bw = new BufferedOutputStream(new FileOutputStream(filePath))
    bw.write(buf)
    bw.close
  }