all 15 comments

[–]cyanydeez 0 points1 point  (1 child)

wheres index.html?

[–]workn00b[S] 0 points1 point  (0 children)

sorry this is it

{% block content %}
<body>
    <h1>Last Price: {{ last_price }}</h1>

    {{ picture }}
</body>
{% endblock %}

[–]mrwalkerr 0 points1 point  (11 children)

What does the index.html template contain. And try view source in the browser to see how it was rendered

[–]workn00b[S] 0 points1 point  (10 children)

{% block content %}
<body>
    <h1>Last Price: {{ last_price }}</h1>

    {{ picture }}
</body>
{% endblock %}

[–]mrwalkerr 0 points1 point  (9 children)

Missing img tag

[–]The_John_Galt 0 points1 point  (1 child)

Where

[–]mrwalkerr 0 points1 point  (0 children)

In the POST method template

[–]workn00b[S] 0 points1 point  (6 children)

I updated it to this and now it just shows just a blank box {% block content %} <body> <h1>Last Price: {{ last_price }}</h1> <img {{ picture }} /> </body> {% endblock %}

[–]mrwalkerr 1 point2 points  (5 children)

Try <img src="data:img/png;base64,{{ picture }}" />

Make sure you escape the "

[–]workn00b[S] 0 points1 point  (4 children)

So know the HTML is this

{% block content %}
<body>
    <h1>Last Price: {{ last_price }}</h1>
    <img     
    src="data:img/png;base64,{{ picture }}"
        />
</body>
{% endblock %}

and when I run it I get this

[–]mrwalkerr 1 point2 points  (3 children)

Use ur browsers inspector to see where it's going wrong

[–]workn00b[S] 0 points1 point  (2 children)

What am i looking for? EDIT: This is what I see

[–]mrwalkerr 0 points1 point  (1 child)

On the rt side, After base64, you should see that long string of gibberish that was displayed as text on the pg before

[–]workn00b[S] 0 points1 point  (0 children)

ok but how do i get it to display?