Retrieve image GridFS by id image

46 views
Skip to first unread message

Hélio Miranda

unread,
May 20, 2013, 9:34:04 AM5/20/13
to mongoeng...@googlegroups.com
I am using mongodb with GridFS, and I'm inserting multiple images of the same record.
And now he wanted to go look at the pictures, but by its id. How can I do this?

Ross Lawley

unread,
May 22, 2013, 6:38:32 AM5/22/13
to mongoeng...@googlegroups.com
Hi,

Sorry for the delay - I've added a test case example for you - showing how to find a document by grid_id:


Then you need to match which image it is against the supplied grid_id

Ross


On Mon, May 20, 2013 at 2:34 PM, Hélio Miranda <heli...@gmail.com> wrote:
I am using mongodb with GridFS, and I'm inserting multiple images of the same record.
And now he wanted to go look at the pictures, but by its id. How can I do this?

--
You received this message because you are subscribed to the Google Groups "MongoEngine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoengine-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages