0
代碼:錯誤消息的MongoDB
import pymongo, gridfs
client = MongoClient("localhost", 27017)
db = client.gridfs_example
fs = gridfs.GridFS(db)
fs.list()
fs.put(open('C:\\Users\\Mihir\\Desktop\\Python with web interface\\crap\\Capture.PNG', 'r'), filename = 'images')
錯誤:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9c in position 19: character maps to <undefined>
我試圖尋找,沒有運氣網絡。