Show and save in other path a recovered image from mongoDB with Python -


    pymongo import mongoclient     import gridfs     matplotlib import pylab plt      client=mongoclient()     db=client.mytest     data=open("fotomongo.png","rb")     fs=gridfs.gridfs(db)     thedata=data.read()     stored=fs.put(thedata,filename="inmongoimage")     out=fs.get(stored).read() 

but now, need show image python , save in other computer path. please, me this.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -