Title: Getting Files backed up by the filesystem · Issue #37340 · nodejs/node · GitHub
Open Graph Title: Getting Files backed up by the filesystem · Issue #37340 · nodejs/node
X Title: Getting Files backed up by the filesystem · Issue #37340 · nodejs/node
Description: Is your feature request related to a problem? Please describe. Blobs are merely pretty useless if they can only be constructed and held in memory. A way to get blobs from the filesystem is necessary if we should see any use for them I pr...
Open Graph Description: Is your feature request related to a problem? Please describe. Blobs are merely pretty useless if they can only be constructed and held in memory. A way to get blobs from the filesystem is necessar...
X Description: Is your feature request related to a problem? Please describe. Blobs are merely pretty useless if they can only be constructed and held in memory. A way to get blobs from the filesystem is necessar...
Opengraph URL: https://github.com/nodejs/node/issues/37340
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Getting Files backed up by the filesystem","articleBody":"**Is your feature request related to a problem? Please describe.**\r\nBlobs are merely pretty useless if they can only be constructed and held in memory.\r\nA way to get blobs from the filesystem is necessary if we should see any use for them\r\nI propose we add support for getting blob's from the filesystem before we start adding support for them in other places like the crypto, streams, fs and other place \r\n\r\nAfter all writing a blob back to the filesystem can be as easy as creating a stream and piping it back to the filesystem or to a http request\r\n\r\n**Describe the solution you'd like**\r\n```js\r\nfs.promises.getBlob('./4gb.dat') // just so we can start using the blob\r\nfs.promises.getFile('./4gb.dat') // think this requires a File class\r\n\r\n// It should not be a issue to get a blob sync, the data should not be held in memory anyway\r\n// the only thing that should be read is modified time and the file size (and filename for `.getFile()`)\r\n// it should only be a pointer to where it should read the data from ( like a handle )\r\nfs.getBlobSync('./4gb.dat')\r\n```\r\n\r\nif the modified time is changed when you try to read the blob then it should throw a NotReadableError DOMException saying that it's out of sync. Likewise if size is changed.\r\n\r\n**Describe alternatives you've considered**\r\n[fetch-blob](https://github.com/node-fetch/fetch-blob/blob/master/from.js) has a \"BlobDataItem\" that is backed up by the filesystem...\r\n\r\n---\r\n\r\nassume this depends somewhat on #37338 and #39015 being resolved first","author":{"url":"https://github.com/jimmywarting","@type":"Person","name":"jimmywarting"},"datePublished":"2021-02-13T00:21:40Z","url":"https://github.com/nodejs/node/issues/37340"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:048b4b27-a628-ba08-0ee0-907068881d0d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADD0:2A075:147D9A6:1AE0B4D:6B096A73 |
| html-safe-nonce | 95bb6f45533e2f28a388f27823a44afe3d878a049aae1a8aa9264c44ef0f4e0b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREQwOjJBMDc1OjE0N0Q5QTY6MUFFMEI0RDo2QjA5NkE3MyIsInZpc2l0b3JfaWQiOiI2Nzk5MjQzOTY3OTUyNjc3NDkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 29d379d5068e03f36eff501ce858d0a9276e0049828a6e41336798a5324d4dcf |
| hovercard-subject-tag | issue:807629402 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/37340/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea42c08201e114e54ab86c1b7d353ed361a72a01798b8b88421f2216c79b7199/nodejs/node/issues/37340 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea42c08201e114e54ab86c1b7d353ed361a72a01798b8b88421f2216c79b7199/nodejs/node/issues/37340 |
| og:image:alt | Is your feature request related to a problem? Please describe. Blobs are merely pretty useless if they can only be constructed and held in memory. A way to get blobs from the filesystem is necessar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jimmywarting |
| hostname | github.com |
| expected-hostname | github.com |
| None | b6dfff01215cdbe7f9d3b4e3173c56bdfd121e29b46ef3059d048eefdb57e554 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6f59a80a1a0caf2a5fe1cabb9f227f3e350a59e5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width