Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook



The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic

Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.

If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.

Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.

Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Display Image (.jpg, .bmp, .png, .gif) From Table

  • Filter
  • Time
  • Show
Clear All
new posts

    Display Image (.jpg, .bmp, .png, .gif) From Table

    I currently display my client's logos by allowing them to upload the logo to a table (see pic) and then using a grid (see pic) to display the logo. This works fine, however the grid consumes a lot of real estate.

    I hope there is a way to display the image stored in the table to the web page and eliminate the grid!

    Ive tried: ? "<img border=0 src="+lookup("[pathalias.adb_path]\logos","ssn="+ssn,"Imagesmall")+" width=150 height=26>"
    and tried other possibilities...

    Read up on blobs but can't seem to figure this out.

    Any help appreciated!
    Last edited by EricN; 09-14-2009, 11:03 PM.

    Alpha Five Websites

    Re: Display Image (.jpg, .bmp, .png, .gif) From Table

    "<img border=0 src="+lookup("[pathalias.adb_path]\logos","ssn="+quote(ssn),"Imagesmall")+" width=150 height=26>"

    "<img border=0 src="+lookup("[pathalias.adb_path]\logos.dbf","ssn="+quote(ssn),"Imagesmall")+" width=150 height=26>"
    Not my area of competency.
    There can be only one.


      Re: Display Image (.jpg, .bmp, .png, .gif) From Table

      Hello Stan,
      Thank you! Below pic is my result so far using:
      ? "<img border=0 src="+lookup("[pathalias.adb_path]\logos.dbf","ssn="+quote(ssn),"Imagesmall")+" width=150 height=26>"

      Alpha Five Websites


        Re: Display Image (.jpg, .bmp, .png, .gif) From Table

        ? "<img border=0 src=\""+lookup("[pathalias.adb_path]\logos.dbf","ssn="+quote(ssn),"Imagesmall")+"\" width=150 height=26>"


          Re: Display Image (.jpg, .bmp, .png, .gif) From Table

          And unrelated, somewhere in the app associate the SSN with a GUID and use the GUID as the lookup value to ensure the privacy of the SSN.
          Steve Wood
          See my profile on IADN


            Re: Display Image (.jpg, .bmp, .png, .gif) From Table


            You might want to rethink the design and put the jpg in a directory (I call mine, creatively, "logos"). Then, make an Image File Reference Field in the customer table to hold the path and image filename. One good trick is to rename the logo to the customer Id. That prevents duplication and makes it easy to find.

            In my table, I create fields named "logoname" "logohigh" "logowide" and "logoalt" Then in the header, put

            <img src="<%a5 ?logoname %>" height="<%a5 ?logohigh %>" width="<%a5 ?logowide %>" alt="<%a5 ?logoalt %>" >

            Pat Bremkamp
            MindKicks Consulting


              Re: Display Image (.jpg, .bmp, .png, .gif) From Table

              Thanks for the suggestion. Still no go. Get blank box and no pic.

              SSN does NOT represent Social Security Number but Social Service Network (my company name). I need to remember there could be confusion when posting here and maybe use something else for my examples.

              Your suggestion is exactly the direction I thought of using width, height and alt fields in the table. I would allow clients to adjust the size of their logo with max and min sizes pre-established. BUT I had hoped to also upload the logo into the table not a directory as daily maint is already set up for the table.

              Alpha Five Websites


                Re: Display Image (.jpg, .bmp, .png, .gif) From Table

                Well Pat I ended up taking your route.

                My upload page saves the file to my vlogos directory and saves pertinent information in my vlogos table.

                The user can then modify the size of the logo. (I do have min and max limits for this). This is via a grid linked to the vlogos table (see pic).
                I then have a page called emlogoshow.a5w with just the following:
                dim gName as c = alltrim(lookup("[pathalias.adb_path]\logos","ssn="+quote(session.ssn),"coname"))
                dim gHeight as c = lookupc("F",alltrim(session.ssn),alltrim("height"),"[pathalias.adb_path]\logos","ssn")
                dim gWidth as c = lookupc("F",alltrim(session.ssn),"width","[pathalias.adb_path]\logos","ssn")
                dim gLogo as c = lookupc("F",alltrim(session.ssn),"name","[pathalias.adb_path]\logos","ssn")

                ? "<center><img border=0 src="+urlencode(gLogo)+" height="+quote(gHeight)+"width="+quote(gWidth)+"alt="+quote(gName)+"></center>"

                I have this a5w_include("emlogoshow.a5w") in pages I wish to display the logo.

                If the user deletes the logo I have the following:
                If uDelete="Yes"
                dim dellogo as c = lookupc("F",alltrim(session.__protected__userid),alltrim("name"),"[pathalias.adb_path]\vlogos","userid")
                If file.exists("[PathAlias.ADB_vlogos]\\"+dellogo) ' vlogo directory containing companies logo
                end if
                ' ===== Users table =====
                dim tbl as P
                dim qry as P
                tbl ="[pathalias.adb_path]\vlogos")
                query.filter = "Userid =" + quote(session.__protected__userid)
                query.order = "Recno()"
                qry = tbl.query_create()
                end if
                Last edited by EricN; 09-16-2009, 12:53 AM.

                Alpha Five Websites