Skip to main content

Displaying a photo stored in an SQL database as a varbinary (max) field

Comments

3 comments

  • Permanently deleted user
    Hi Denise,

     

    To display an image in a map tip, you should be able to specify something like the following:

     

    <img src="{binary data}" style="width:300px; height:200px;"/>

     

    It may not be showing up in the map tip in the viewer due to the size of the image being too large.

     

    - Matt Hodgson
    0
  • Denise Beckham
    Hello Matthew, 

     

    Thank you for your response! I tried adding the code you suggested to my map tips, but it didn't quite work.  There is a box for the picture, but it did not load.  It was obviously pulling the data, because it took about 8 seconds for the date field to populate (it's being pulled from the same datalink) when I clicked on a point that has a picture in the linked table.  When I clicked on points without photos, the dates populated instantly. 

     

    I tried decreasing the size to 150x100, but it still didn't work.  Do you have any other suggestions on why it might not be displaying?

     

    Thanks,

     

    Denise

     

    User-added image 
    0
  • John Nerge
    Same result for me, the frame shows up, but the photo doesn't. Similar situation to Denise's, in my case I'm trying to pull in photos our Assessing team took and stores in CAMAvision, using a data link to link them to our GIS parcel dataset using parcel ID and display the latest photo in the pop-up.
    0

Please sign in to leave a comment.