如何在Scala中使用playframework将文件上传到数据库 [英] How to upload a file to the database using playframework in Scala
本文介绍了如何在Scala中使用playframework将文件上传到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用带Scala的Play!2处理文件上传到数据库的推荐方法是什么?
What is the recommended way of handling file uploads to the database using Play!2 with Scala?
推荐答案
根据您的特定要求,MongoDB的GridFS将以比任何关系数据库和文件系统更为有效和可扩展的方式为您存储文件.
Depending on your specific requirements, MongoDB's GridFS will store files for you in a much more efficient and scalable manner than any relational database and filesystem.
http://www.mongodb.org/display/DOCS/GridFS
有很多支持GridFS的MongoDB Play插件.
There are plenty of MongoDB plugins for Play that support GridFS.
这篇关于如何在Scala中使用playframework将文件上传到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文