On 2015-06-12 02:46, [email protected] wrote: > > StringIO is not in the context of the Report. But as I said previously, > > normally you should not need to use StringIO. > > I checked the module copmany_logo. The image is set as an binary field -> > logo > = fields.Binary('Logo') > > so should i use BytesIO for import the Image in the report instead of > StringIO. > I don't know the right syntax of the command. > would image: (BytesIO(company.logo), 'image/png') solve my problem?
Why would you want to convert company.logo? Why not use it directly? -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
