Skip to main content

Displaying a photo stored in a blobraster field

Comments

3 comments

  • Permanently deleted user
    Hi Chris,   Are you using Essentials for the ADF elements or Essentials REST elements?   Is your BLOB field available to the map or is it published via a data link?   This isn't something we have done yet - I think the simplest solution would be to use the RPX internal scripting (which is powerful enough to access .NET assemblies) to convert the raw bytes of the image into a C# Image object that can be attached to an Active Reports control.   Regards, -Malcolm    

     

    0
  • Permanently deleted user

    This is a rather old post but still relevant.  I need to display a raster in a report.  

    so I added a script but can't figure out how to get the raster (rpt.Fields["PHOTO"].Value)  to become an image:

    public void detail1_Format()

     

    {   

     

         

     

       System.Drawing.Image image = null;

     // need to set the image to the value of this:   rpt.Fields["PHOTO"].Value  

     

     

        Picture PictureProperty = rpt.Sections["detail1"].Controls["PictureProperty"] as Picture;

     

        PictureProperty.Image = image;

     

    }

     

     

    0
  • Permanently deleted user
    I am also trying to display a photo in a report that is stored in  SQL database as a varbinary field. Any ideas on how to accomplish this?
    0

Please sign in to leave a comment.