8
/**
 *  Request png
 */
 var request = require('superagent')
 var req = request.get('http://example.com/original/' + id + '.png');

 req.end(function(response){
   // Here i want send responsed image to another server
   req.post('http://upload-example.com').attach('???')
 })

画像ファイルをパイプしてエンドポイントをアップロードするにはどうすればよいですか? nodejs環境で最新バージョンのスーパーエージェントを使用しています。

4

1 に答える 1