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
Post a Comment