Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8855867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:13:57+00:00 2026-06-14T14:13:57+00:00

So this is my setup I have a client from which files are uploaded

  • 0

So this is my setup

I have a client from which files are uploaded to the node.js server (serverA) and from there I want to stream the files to another server (serverB) without saving the file temporarily (on serverA).

What is the simplest and the best way to achieve this?

I am able to upload the file to serverA but I don’t want the temporary file to be stored.

Update:

its a simple ajax file uplaod to (severA)… The idea is to transfer byte-wise so that even if the connection goes off, you can read it back from that particular byte.

I am using express.js on serverA and backbone.js is the client using which I do the ajax uploads. For now there’s no connection between A and B as such, they communicate through endpoints. serverA is running on port 4000 and serverB on port 5000. I want to somehow pipe the file from serverA to an endpoint on serverB.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:13:58+00:00Added an answer on June 14, 2026 at 2:13 pm

    Since HttpRequest is a stream, you could use the request module to pipe the current request into the other endpoint inside your express route:

    app.post('myroute', function (req, res) {
        var request = require('request');
        req.pipe(request.post('/my/path:5000')).pipe(res);
    });
    

    Would that approach work?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a bit of an odd setup, which comes from the fact we
I have developed a WPF client which poupaltes some sample data into it from
I have this setup in my models: class Author(models.Model): name = models.CharField(max_length=100) class Topic(models.Model):
On my portfolio page I have this setup: <div id=portfolio> <ul id=sites> <li> <h3><a
I have this following setup, a textarea named with some data in it that
I have a setup like this: http://jsfiddle.net/zzjSC/3/ and I am wondering why the surrounding
I have a setup like this: <div id=container> <div id=close>Close</div> </div> Then in my
I have a setup like this. var element = $(.module-panel, this.el); $('.module-panel:not('+element+')').hide(); What I'm
I have setup my windows in a certain way. How do I save this
In settings.py I have setup a way to log my messages like this: logging.basicConfig(

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.