Displaying a photo stored in a blobraster field
I have a feature class which has photos stored in either a Raster or a Blob field. I want to be able to display the stored image within a Report. I have assigned the appropriate DataField to the picture object but it was too much to ask that this would just work. Any help on how I may achieve this would be appreciated. I don't mind whether I'm using a Raster or Blob field. Thanks, Chris
0
-
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 -
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()
// need to set the image to the value of this: rpt.Fields["PHOTO"].Value
0 -
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.
Comments
3 comments