{"action":"created","issue":{"url":"https://api.github.com/repos/feathersjs/feathers/issues/384","repository_url":"https://api.github.com/repos/feathersjs/feathers","labels_url":"https://api.github.com/repos/feathersjs/feathers/issues/384/labels{/name}","comments_url":"https://api.github.com/repos/feathersjs/feathers/issues/384/comments","events_url":"https://api.github.com/repos/feathersjs/feathers/issues/384/events","html_url":"https://github.com/feathersjs/feathers/issues/384","id":170052010,"number":384,"title":"Streaming large data through service?","user":{"login":"ramsestom","id":636758,"avatar_url":"https://avatars.githubusercontent.com/u/636758?v=3","gravatar_id":"","url":"https://api.github.com/users/ramsestom","html_url":"https://github.com/ramsestom","followers_url":"https://api.github.com/users/ramsestom/followers","following_url":"https://api.github.com/users/ramsestom/following{/other_user}","gists_url":"https://api.github.com/users/ramsestom/gists{/gist_id}","starred_url":"https://api.github.com/users/ramsestom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramsestom/subscriptions","organizations_url":"https://api.github.com/users/ramsestom/orgs","repos_url":"https://api.github.com/users/ramsestom/repos","events_url":"https://api.github.com/users/ramsestom/events{/privacy}","received_events_url":"https://api.github.com/users/ramsestom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-08T23:50:11Z","updated_at":"2016-08-09T14:39:40Z","closed_at":null,"body":"Hi\r\n\r\n  I have an app where users should be able to post and retrieve large data files (photos, documents...) to/from the server. I read the file uploading tutorial (http://docs.feathersjs.com/guides/file-uploading.html) but I have many concerns regarding it:\r\n- From what I understood, large data files should be post using multiform post data protocol. That means that it would only work with the rest provider. So, if my app currently uses websockets, I would have to reopen an http rest connection to upload my large files. Is there any other option that could allow me to stream large data through websocket to the feathersjs server?\r\n- I was planning on storing my large datafiles directly into a mongoDB database (using GridFS) rather than having to handle them with the filesystem. But here also, it doesn't seems to exists any solution, yet, to stream large data directly from a fethersjs server to a client through websocket service calls. So I would probably have to extract the data from the database, put it into a temporary file (which would consume RAM and CPU on the server) and expose it through the rest provider if I want my client to be able to download a stored file... Am I wrong?  \r\n\r\nSo is there any solution to stream data using a feathersjs service (express seems to handle readable and writable stream objects: https://nodejs.org/api/stream.html#stream_event_pipe) that could be used to upload/download large data files using websockets?\r\n"},"comment":{"url":"https://api.github.com/repos/feathersjs/feathers/issues/comments/238574278","html_url":"https://github.com/feathersjs/feathers/issues/384#issuecomment-238574278","issue_url":"https://api.github.com/repos/feathersjs/feathers/issues/384","id":238574278,"user":{"login":"ramsestom","id":636758,"avatar_url":"https://avatars.githubusercontent.com/u/636758?v=3","gravatar_id":"","url":"https://api.github.com/users/ramsestom","html_url":"https://github.com/ramsestom","followers_url":"https://api.github.com/users/ramsestom/followers","following_url":"https://api.github.com/users/ramsestom/following{/other_user}","gists_url":"https://api.github.com/users/ramsestom/gists{/gist_id}","starred_url":"https://api.github.com/users/ramsestom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramsestom/subscriptions","organizations_url":"https://api.github.com/users/ramsestom/orgs","repos_url":"https://api.github.com/users/ramsestom/repos","events_url":"https://api.github.com/users/ramsestom/events{/privacy}","received_events_url":"https://api.github.com/users/ramsestom/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T14:39:39Z","updated_at":"2016-08-09T14:39:39Z","body":"handling data output streams for `get` would be nice too.\r\nI found an express-stream middleware (https://www.npmjs.com/package/express-stream) that could probably be used."}}
{"actor":{"display_login":"ramsestom"}}