loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Storing file in MS SQL

Open spatrame opened this issue 9 years ago • 3 comments

I am using loopback-component-storage to upload file to file system.

I wants to store the files directly into MS SQL database.

Please let me know how can I achieve it.

spatrame avatar Jul 13 '17 09:07 spatrame

@spatrame https://www.npmjs.com/package/loopback-connector-mssql#sql-server-to-loopback-types https://nodejs.org/docs/latest/api/fs.html#fs_fs_readfile_path_options_callback

fs.readFile to Buffer and store it as MS SQL Binary type? If no encoding is specified, then the raw buffer is returned.

Setogit avatar Jul 31 '17 18:07 Setogit

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 29 '17 18:09 stale[bot]

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

stale[bot] avatar Oct 13 '17 19:10 stale[bot]