Questions tagged [gridfs-stream]

gridfs-stream is a node.js module that provides streams for writing to and reading from GridFS on MongoDB.

For more information, visit gridfs-stream's github repository.

160 questions
0
votes
1 answer

Image streamed from Mongo's Gridfs not displayed in browser

I am posting this issue here, I have been reading many related posts, but any of them helped me in making it work. The idea is pretty easy: I have a MEAN-based application in which is possible to upload an image to GridFS - WITHOUT storing it…
0
votes
2 answers

WriteConcernException when closing Mongo GridFS file stream

I'm using MongoDB driver in C#, and store video files using GridFS. I store the files continuously like recording a stream and once in a while (might be in middle of writing process) I ask to "play" a file. In some cases, at that part of playing the…
RoeeK
  • 1,112
  • 12
  • 23
0
votes
1 answer

Maximum call stack size exceeded - saving to GridFS - no recursion happening

I'm trying to save a file into GridFS in node.js. The usecase is actually really straight forward: "upload a file to a restify app, save it into GridFS". function put(req, res, next) { var ws, filename; var application = new…
Roman
  • 5,888
  • 26
  • 47
0
votes
1 answer

error ENOENT,open with gridFS and node js

I am trying to save a project and its file using GridFS. I want to save project first and use "_id" of project as metadata for file. Here is my code: newProject.save(function (err,project) { if (err) { console.log('save…
Abhas Tandon
  • 1,859
  • 16
  • 26
0
votes
1 answer

displaying images from mongodb gridfs using spring data

I am new to this area, I have added a number of images to gridfs. Now i want to display all these images on html page. I have retrieved the images from mongodb using the following code. Query query = new…
Shahzeb Khan
  • 3,582
  • 8
  • 45
  • 79
0
votes
1 answer

Use GridFS on the local disk with C++

I'm looking for a solution that let's me store some nested filestructure (directories, files) in a single file. I thought about simple archives like tarballs, but due to many operations it's not appropriate. Than I thought about JSON and store…
Chris Pillen
  • 810
  • 8
  • 27
0
votes
0 answers

Node.js gridfs-stream download file CPU usage

i have a problem with high cpu usage when streaming file from Mongodb Gridfs to file system. I'm currently using gridfs-stream node.js module and the code is as follows: //Main server file app.get('/download/:name', crud.download) //crud.js…
Case09
  • 313
  • 6
  • 18
0
votes
1 answer

Same image appearing on render but not in source with gridfs-stream (mongoose & mongo driver)

I'm having a strange issue wherein images are being shown more than once on the index, but shows the correct series of images per post in the permalink view. I'm using this controller, routed to /grid/:id exports.getById = function(req, res){ id =…
yolk
  • 729
  • 7
  • 10
0
votes
1 answer

How can I do a replace with gridfs-stream?

I'm using this code to do a file update: app.post("/UploadFile", function(request, response) { var file = request.files.UploadedFile; var name = request.param("Name"); var componentId = request.param("ComponentId"); …
Mike Pateras
  • 14,715
  • 30
  • 97
  • 137
-2
votes
2 answers

How to get GridFS file by UUID in new Mongo 2.X driver

As we know, we can use ObjectId as our identifier. In my situation I have legacy code where we use GUIDs in MongoDB (UUID) as identifiers. Best Practices for UUID Data in MongoDB I have a problem with getting a file from GridFS by UUID. I use new…
adam.bielasty
  • 671
  • 9
  • 20
1 2 3
10
11