Base64 images to gmail in Delphi
At first i thought the issue is this : PCFET0NUWVBFIGh0bWwgUFVCTElDICItL
since it does not look like base64 code of png which starts with iVBOR.
But the issue was here : Content-ID: qrcode.png
When setting Content-ID you have to be carefull since in some versions simply setting it with quotation marks is not enough and you have to set it with adding <> like so : Content-ID: <qrcode.png>
.
With this the result was as wanted.
Email template variable, image src attribute issue with gmail (in Django)
i think you don't need a docstring
and just use a double-quoted string
refer to this thread about when to use docstrings https://writing.stackexchange.com/questions/33489/when-documenting-python-when-should-i-use-docstrings-and-when-should-i-use-comm
change your function
output = '''https://**************/{}-bottle-img.png'''.format(self.number_of_bottles
to
output = "https://**************/{}-bottle-img.png".format(self.number_of_bottles
let me know if this solves you issue with super-flue blanc characters
Related Topics
How to Add a Tool Tip to a Span Element
Make <Body> Fill Entire Screen
Uppercase or Lowercase Doctype
Easiest Way to Extract the Urls from an HTML Page Using Sed or Awk Only
Is It Bad to Use Uppercase Letters for HTML Tags
Issue with CSS Media Queries(Scrollbar)
How to Set a Stroke-Width:1 on Only Certain Sides of Svg Shapes
How to Pass a Parameter to HTML
How to Remove "Invisible Space" from HTML
How to Hide Columns in HTML Table
HTML + CSS: Ordered List Without the Period
Bootstrap: Add Margin/Padding Space Between Columns
Make Link in Table Cell Fill the Entire Row Height
Html5 Validation When the Input Type Is Not "Submit"
Why Would Margin Not Be Contained by Parent Element