SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Display Binary Image in Report Builder from Database


Display Binary Image in Report Builder from Database

Author
Message
thomashohner
thomashohner
SSC Eights!
SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)

Group: General Forum Members
Points: 904 Visits: 2283
Anyone have any suggestions on how to display a Binary Image in Report Builder 3.0? I'm trying to display the TemplateImage it is DataType "Image" which as I understand is Binary.

The table I have has only 4 Fields

ClinicalTemplateID (PK, numeric(18,0), Not Null
TemplateVersion (PK, smallint, Not Null)
TemplateImage (image, not null)
CreateDate (datetime, not null)


Here is the first few characters of the IMAGE value.
0x789CED5D7B6FE33892BFBF17D8

Any guidance is appreciated!

Thanks Thomas

***SQL born on date Spring 2013:-)
patrickmcginnis59 10839
patrickmcginnis59 10839
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1830 Visits: 5527
thomashohner (4/25/2014)
Anyone have any suggestions on how to display a Binary Image in Report Builder 3.0? I'm trying to display the TemplateImage it is DataType "Image" which as I understand is Binary.

The table I have has only 4 Fields

ClinicalTemplateID (PK, numeric(18,0), Not Null
TemplateVersion (PK, smallint, Not Null)
TemplateImage (image, not null)
CreateDate (datetime, not null)


Here is the first few characters of the IMAGE value.
0x789CED5D7B6FE33892BFBF17D8

Any guidance is appreciated!

Thanks Thomas


All the google hits I see on 0x789c point to a 'zlib compressed' format, ie., it just might not be displayable as is without conversion. Chances are that the app that stores it also decompresses it when needed and that you'll subsequently have to find out what format this binary decompresses TO (even if you can manage to get a decompressed version of the column delivered to report builder).

2 cents, and they could be wrong too!

to properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
thomashohner
thomashohner
SSC Eights!
SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)

Group: General Forum Members
Points: 904 Visits: 2283
Great reply, Thanks so much. I do know the Application uses a SVG viewer to open other IMAGE files but beyond that I'm at a loss.

***SQL born on date Spring 2013:-)
patrickmcginnis59 10839
patrickmcginnis59 10839
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1830 Visits: 5527
Makes some sense! According to http://stackoverflow.com/questions/15136264/how-can-i-say-a-file-is-svg-without-using-a-magic-number SVG uses xml (as vector formats are probably primariliy a description of how to draw something instead of a description of the end results ie., bitmaps or what actually got drawn LOL) and I bet that is very compressible. On the other hand, looking at report builder, svg is not one of those that you're going to be able to pull from a column and display as an image (I see listed bmp, gif, jpeg, png, x-png).

to properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
thomashohner
thomashohner
SSC Eights!
SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)

Group: General Forum Members
Points: 904 Visits: 2283
I have a feeling this conundrum is approaching the limit of my skill set as I understand very little about how images are rendered. I wish Report Builder supported SVG and other image types or that there was a way to covert that field to something Report Builder did use like the file types you listed. However I know wishing isn't worth much.

***SQL born on date Spring 2013:-)
aframiller326
aframiller326
SSC Rookie
SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)

Group: General Forum Members
Points: 36 Visits: 31
thomashohner (4/25/2014)
Anyone have any suggestions on how to display a Binary Image in Report Builder 3.0? I'm trying to display the TemplateImage it is DataType "Image" which as I understand is Binary.

The table I have has only 4 Fields

ClinicalTemplateID (PK, numeric(18,0), Not Null
TemplateVersion (PK, smallint, Not Null)
TemplateImage (image, not null)
CreateDate (datetime, not null)


Here is the first few characters of the IMAGE value.
0x789CED5D7B6FE33892BFBF17D8

Any guidance is appreciated!

Thanks Thomas


Try following two older threads. Sorry for unable to summerize the most useful information for you. I am a newbie.:-D

http://www.networksteve.com/enterprise/topic.php/Display_image_from_custom_list_in_report_+_Report_Builder_3.0/?TopicId=23685&Posts=6

http://www.dbforums.com/microsoft-sql-server/1670865-report-builder-3-0-external-images-not-loading.html
thomashohner
thomashohner
SSC Eights!
SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)

Group: General Forum Members
Points: 904 Visits: 2283
Thank you I will look at them now:-)

***SQL born on date Spring 2013:-)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search