The filename is logically separate from the data so you will need to transfer that by some other means. Since you already have data flowing between the two nodes I might suggest sending the filename using the same stream before sending the file's data. This would be like defining a mini protocol for transferring data.
-- Daniel R. <[email protected]> [http://danielr.neophi.com/] On Sat, Feb 23, 2013 at 7:52 AM, Thorsten Moeller <[email protected]>wrote: > Hi, > > i managed to get a filetransfer from one node server to another one > working using net.Socket, ReadStream and pipe on one side and a server with > writeStream on the other side. > > The only thing i could not figure out after googling for days and reading > docs over and over is how to manage to preserve the filename during > transfer. > > When i use a fix name on the receiver side, everything works well. But i > want to keep the files name as it is. > > Can anybody help?? > > Regards > > Thorsten > > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
