Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- val sas = args[0]
- val filePath = args[1]
- val fileName = args[2]
- val container = CloudBlobContainer(URI.create(sas))
- val blob = container.getBlockBlobReference(fileName)
- blob.uploadFromFile(filePath)
- successAction()
- } catch (ex: Exception) {
- failedAction()
- ex.printStackTrace()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement