首页 \ 问答 \ 使用nodeJS loopback 2.5将PDF文件存储在mongoDB中(Store PDF file in mongoDB using nodeJS loopback 2.5)

使用nodeJS loopback 2.5将PDF文件存储在mongoDB中(Store PDF file in mongoDB using nodeJS loopback 2.5)

我希望用户上传pdf然后我可以将它存储在binData formate中的mongoDB中。 使用Loopback作为我的数据库后端。

不需要gridfs,因为文件总是很小

关于如何做的任何建议???


I want the user to upload pdf then I can store it in mongoDB in binData formate. using Loopback as my database backend .

no need for gridfs as the file will always be small

any suggestions on how that can be done ???


原文:https://stackoverflow.com/questions/39943966
更新时间:2023-05-10 09:05

最满意答案

据我所知,这在VS2008中是不可能的。 :(


As far as I know this is not possible in VS2008. :(

相关问答

更多
  • import unittest import sys import pdb import functools import traceback def debug_on(*exceptions): if not exceptions: exceptions = (AssertionError, ) def decorator(f): @functools.wraps(f) def wrapper(*args, **kwargs): ...
  • 尝试在你的代码中放置一个有用的行上的断点: from pudb import set_trace; set_trace() 您尝试启动它的方式可能会干扰测试发现和/或不会使用'__main__'的__name__运行脚本。 Try placing a breakpoint on a useful line in your code: from pudb import set_trace; set_trace() The ways you tried to launch it might interfer ...
  • 调试将帮助您诊断非工作代码。 单元测试提供以下内容: 一种可重复的方式来确定您的代码是否适用于常见情况和边缘情况。 他们可以让你自信地重构你的代码,它仍然有效。 一个可证明的代码规范。 在没有书面规范的情况下,你的单元测试就是你的代码规范。 敏捷世界尤其如此。 有助于构建结构良好的代码。 因为你想单独运行单元测试,所以你必须编写你的测试类来接受不同的(有时是模拟的)数据源,汇等。通过鼓励这些抽象和关注的分离,你的代码将变得结构良好(你可以当然,编写没有单元测试的结构良好的代码) 您的单元测试应该反复运行(通 ...
  • 这是因为Play(SBT)将单独的JVM分别用于测试,没有远程调试所需的选项。 您至少有两个选项:禁用新JVM的分支,将其他选项传递给用于测试的JVM。 要禁用fork,请修改Build.scala, fork in (Test) := false添加fork in (Test) := false ,请参阅下面的完整Build.scala示例: import sbt._ import play.Project._ object ApplicationBuild extends Build { val ...
  • 令人惊讶的是,当我关闭病毒扫描程序扫描程序解决方案目录时,这种行为并没有发生。 我可以提出一个理论,即构建二进制签名在扫描过程中以某种方式被修改,它使visual studio多次重建它 Suprisingly, this behaviour didnt occur when I turn off the virus scanner scanner the solution directory. I can make a theory that the build binary signature some ...
  • 目前,我所知道的调试Scala.js代码的唯一方法就是在浏览器中(按步骤)。 您可以在sbt中为您的测试生成一个HTML运行器: sbt> testHtmlFastOpt // snip [info] Wrote HTML test runner. Point your browser to .../test-suite-fastopt-test.html 这可以启动Scala.js 0.6.10。 Currently, the only way to (step-by-step) debug Scala ...
  • 解决方案是使用自定义脚本替换mvn命令,该脚本将执行rsync和ssh 。 通过两种工具的魔力,它的效果非常好。 此外,它应该可以移植到其他Maven IDE。 当前指南适用于bash ,但同样的想法可以在Windows中使用powershell , groovy甚至cmd 。 (我尝试使用Nashorn,但在正确保留所有参数的同时执行其他命令的方式似乎已经破解。) 在Netbeans目录/usr/local/netbeans-8.1/java/maven/bin/ ,重命名mvn脚本: cd /usr/l ...
  • 上述问题很可能是 Windows运行时中的错误或调试器/ coreclr不匹配 。 使用UWP运行时版本5.1.0在托管,本机和混合模式下进行调试非常有效。 通过将UWP运行时版本更新到5.2.2,可以重现报告的问题。 通过降级到UWP运行时5.1.0问题得到解决。 我VS的版本是2015 Update 3.1。 所有上述问题都在干净的Windows 10 Pro和VS 2015 Update 3.1安装上重现。 有关UWP运行时v5.2.2的解决方法,请参阅注释2 The above problem is ...
  • 据我所知,这在VS2008中是不可能的。 :( As far as I know this is not possible in VS2008. :(
  • 调试Silverlight 在多进程浏览器中进行调试可能会很麻烦。 一旦开始调试,您通常必须手动附加调试器,因为Visual Studio启动它然后尝试调试的过程不是运行Silverlight插件的过程。 只需使用Debug-->Attach to process...在调试模式下启动应用程序后执行此操作。 我从来没有使用这种方法调试失败。 我还在这里发布了关于这个多进程浏览器Silverlight调试问题。 注意:多进程浏览器包括Chrome,IE8和Firefox 3.5,尽管IE8在处理多进程问题时可 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)