+ 1
How do store Image data (bytes-like) in JSON using Python?
2 Respostas
+ 2
I suppose you can read an image as bytestring and store it as dictionary value. Dictionaries are same as JSON in python. If you want to store it in a JSON file, do: import json; json.dump(mydict). Use json.load("file.json") to read a json file.
+ 1
I suppose you can read an image as bytestring and store it as dictionary value. Dictionaries are same as JSON in python. If you want to store it in a JSON file, do: import json; json.dump(mydict). Use json.load("file.json") to read a json file.