Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
added close connection for upload
Browse files Browse the repository at this point in the history
  • Loading branch information
flahn committed Jan 25, 2018
1 parent 8cdb433 commit 3c9cb56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/api.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,9 @@ openeo.server$api.version <- "0.0.1"
dir.create(dir.split[1],recursive = TRUE,showWarnings = FALSE)
file.create(storedFilePath,showWarnings = FALSE)

writeBin(req$rook.input$read(req$rook.input$.length),con=file(storedFilePath,"wb"),useBytes = TRUE)

outputFile = file(storedFilePath,"wb")
writeBin(req$rook.input$read(req$rook.input$.length), con=outputFile, useBytes = TRUE)
close(outputFile,type="wb")
ok(res)
}
}
Expand Down

0 comments on commit 3c9cb56

Please sign in to comment.