How to use addmedia and addnote from backend?

I am slowly implementing the image-occlusion, I have managed to implement sending generated question and answer svg as bytes data to backend. The data will be saved as svg file in and notes with img src will be added. The backend have add_media_file and media has add_file but how it can be used? I want to add the following image name and data to folder.
send generated svg images and notes data to backend · krmanik/anki@1d4e40c · GitHub

1 Like