After loading a docxtpl object, adding image from storage path works fine. But is there a way to add from binary value of an image directly to document ? In the framework I use, images are stored in separate table as binary values. Looking for a way to use those directly instead storing in server which might affect storage space.
fig_list = []
[fig_list.append(
{
'image': InlineImage(doc, image_file_path, width=Mm(60), height=Mm(60)),
'desc': x.name,
}
) for x in self.figure_rec if x.type == 'figure']
Thanks