跳至內容
選單
此問題已被標幟
2 回覆
5777 瀏覽次數

I use 

``` 

<img t-if="o.visitor.visitor_image" t-att-src="'data:image/png;base64,%s' % o.visitor.visitor_image" height="120" border="1" width="120"/>

```

but still my image not show in Qweb PDF report

頭像
捨棄
最佳答案

Hi Usman,

Try following code:

<img t-if="o.visitor.visitor_image" t-att-src="'data:image/png;base64,%s' % o.visitor.visitor_image"/>
頭像
捨棄
作者 最佳答案

<img t-if="o.visitor.visitor_image" t-att-src="'data:image/png;base64,%s' % to_text(o.visitor.visitor_image)" height="120" border="1" width="120"/>

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
3月 24
2449
2
10月 22
5646
1
2月 22
2781
1
8月 21
4251
2
3月 21
3828