Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4553124
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:54:04+00:00 2026-05-21T16:54:04+00:00

Hi I wonder why my image doesn’t appear. I think it is stored both

  • 0

Hi I wonder why my image doesn’t appear. I think it is stored both as a blobproperty and in the blobstore since it appears like a thumbnail on the list page. The address to the page where the image doesn’t appear is http://www.koolbusiness.com/servead/4125209

And the thumbnail from the same image appears in the list http://www.koolbusiness.com/li

Some of my template code to display image is:

{% if ad.matched_images.get %} <table><tr>
        <td>

            <div class="ad_pict" id="display_image"><img src="{{url}}" alt="" onload="show_hidden_elements();return false;"></div>

       </td> <td>

{% ifequal len 1 %}
{% else %}
          {% for im in imv %}

            <div id="thumb0" class="ad_thumb ad_border_solid_black" onclick="showLargeImage('{{im}}');thumbnailBorder(this, 5 )">
                <table class="clean_table shadowed_thumb" cellpadding="0" cellspacing="0">
                    <tbody>
                        <tr>
                            <td><img src="/_/img/thumb_left_top.gif"></td>
                            <td class="top_middle" align="left" valign="bottom"></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td class="middle_left"></td>
                            <td><img src="{{im}}=s120" alt="">

</td>
                            <td class="single_middle_right" valign="top"><img src="/_/img/thumb_single_right_top.gif"></td>
                        </tr> 
                        <tr>
                            <td></td>
                            <td class="single_bottom_center" valign="top"><img src="/_/img/thumb_single_left_bottom.gif"></td>
                            <td valign="top"><img src="/_/img/thumb_single_right_bottom.gif"></td>
                        </tr>
                    </tbody>
                </table>
            </div>

            {% endfor %}

{% endifequal %}

Ans som eof my serverside python to load the template is:

class AdHandler(I18NHandler):
    def get(self, id):
        ad = Ad.get_by_id(long(id))
        if not ad:
            self.error(404)
            return
        image = ad.matched_images.get()
        url=''
        if image:
            if image.primary_image:
                url = images.get_serving_url(str(image.primary_image.key()))

        imv = []
        table=''
        for i in ad.matched_images:
            if i.primary_image:
              i1=images.get_serving_url(str(i.primary_image.key()))
              imv.append(i1)

        self.render_template("imageinfo.html", {'url':url,
        'imv':imv,'len':len(imv),
        'ad':ad,
        'image': image,
        'logout_url': users.create_logout_url('/'),
    })

If I use the old version of the page the image does appear so it’s clear that I have it in the database, I’ve just written a bug and need to structure my migration from the blobproperty to the blobstore: http://www.koolbusiness.com/4125209

Since the image appears at the later url I know it’s there and it’s just a bug in my code somewhere that I can’t reproduce that makes the image not appear. Thanks for any help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T16:54:05+00:00Added an answer on May 21, 2026 at 4:54 pm

    I would guess that one of these two if statements is evaluating to false:

        if image:
            if image.primary_image:
                url = images.get_serving_url(str(image.primary_image.key()))
    

    If you were actually calling get_serving_url, you would either get a valid serving URL or an exception. Instead, url still has its starting value, a blank string.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wonder when saving plot into image file in matlab, what is the difference
I wonder if anyone has an idea how you have to transform an image
I wonder whether someone could help me please. I'm using Image Uploader from Aurigma,
I've been considering image hosting services for a project but am starting to wonder
I wonder if you have any idea of why my Launch image get displayed
I wonder why IE doesn't seem to recognize the width I specify? Basically I
I wonder if there is a way to use the fancybox with Image maps?
My page contains an image like in example below. Width of the image depends
I wonder how you can put a fullsize background image to a website using
4.7 and like to overlay two images on a qgraphicsview. The image on top

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.