11

I have a server which only accepts .tar.gz files or .zip files.

Client side (in browser) I have a couple of Blob's in memory which I need to push back to the server.

Is there any way I can archive these Blob's (i.e. adding to zip or tar.gz) file by streaming them directly to the server?

I would like to avoid having the complete tar.gz file in memory before pushing back to the server.

thanks

cecemel
  • 616
  • 2
  • 7
  • 22

1 Answers1

4

This is a duplicate question, see here

It links to this article

For streaming tar files, see here.

Community
  • 1
  • 1
mikeb
  • 10,578
  • 7
  • 62
  • 120
  • 1
    Yes I saw that one, but it does not tell me how to create the tar or push the tar archive directly to server, without having the tar in memory completely. – cecemel Jul 02 '15 at 11:13
  • OK, check my edit, there is a link to a streaming tar javascript library. – mikeb Jul 02 '15 at 11:24
  • thx. It seems to be a node module and working with node streams. I don't feel confident enough to do a client side port... – cecemel Jul 02 '15 at 17:07
  • 1
    no worries. Would it be possible to remove the 'duplicate question' remark, because I don't consider this as one, and when people see the question and see this as the first answer, I don't expect to have much success – cecemel Jul 02 '15 at 17:19
  • I don't understand why you don't consider it to be a dupe? Both are asking for tar libraries??? – mikeb Jul 10 '15 at 16:54