This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var formData = { | |
'myfile_key': { | |
value: <Buffer object> | |
options: { | |
filename: 'image_file' | |
} | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from 'http'; | |
import axios from 'axios'; | |
http.createServer(async function (req, res) { | |
const responseStream = await axios({ | |
method: 'get', | |
url: 'http://blob.file.storage/filepath', | |
responseType: 'stream' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
const fs = require('fs'); | |
const url = <path_to_file> | |
axios({ | |
method: 'get', | |
url: url, | |
responseType:'stream' | |
}) | |
.then(res => { | |
res.data.pipe(fs.createWriteStream('new.zip')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nssm install SeleniumHub java -jar C:\Selenium\selenium-server-standalone-2.48.2.jar -role hub | |
nssm start SeleniumHub | |
nssm install SeleniumNode1 java -jar C:\Selenium\selenium-server-standalone-2.48.2.jar -role node -hub http://localhost:4444/grid/register -Dwebdriver.chrome.driver=C:\Selenium\chromedriver.exe | |
nssm set SeleniumNode1 DependOnService SeleniumHub | |
nssm start SeleniumNode1 | |
nssm install SeleniumNode2 java -jar C:\Selenium\selenium-server-standalone-2.48.2.jar -role node -hub http://localhost:4444/grid/register -Dwebdriver.chrome.driver=C:\Selenium\chromedriver.exe | |
nssm set SeleniumNode2 DependOnService SeleniumHub | |
nssm start SeleniumNode2 |
OlderNewer