D
D
Dmitry Tsirulnikov2015-04-06 03:35:55
MongoDB
Dmitry Tsirulnikov, 2015-04-06 03:35:55

ImageGridFsProxy: how to get a link to a file in a template from Mongo?

Good day.
Faced such a problem, I can not get the image from MongoDB. The variable contains ImageGridFsProxy, when calling the read() method it gives an error

UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)


Can anyone know how to get a file from mongo?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question