{"id":356,"date":"2018-11-05T16:41:17","date_gmt":"2018-11-05T16:41:17","guid":{"rendered":"http:\/\/www.yohz.com\/blogs\/?p=356"},"modified":"2018-11-05T16:51:07","modified_gmt":"2018-11-05T16:51:07","slug":"why-is-sql-image-viewer-not-displaying-details-of-my-blobs","status":"publish","type":"post","link":"https:\/\/www.yohz.com\/blogs\/2018\/11\/05\/why-is-sql-image-viewer-not-displaying-details-of-my-blobs\/","title":{"rendered":"Why is SQL Image Viewer not displaying details of my blobs"},"content":{"rendered":"<p>If you are using a third-party application to upload images and\/or files into your database, and SQL Image Viewer cannot identify the image or file type, then there&#8217;s a high probability that your application has modified the data.<\/p>\n<p>Examples of such applications include the MAZE School Information System and the Financial Edge system by Blackbaud.\u00a0 We had a user who had the following data stored in their Financial Edge database.\u00a0 In SQL Image Viewer, the following is displayed:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-357\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_01.png\" alt=\"\" width=\"786\" height=\"593\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_01.png 786w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_01-300x226.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_01-768x579.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_01-624x471.png 624w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/><\/p>\n<p>SQL Image Viewer is unable to identify the data that&#8217;s stored in the fields (they&#8217;re actually PDF files).\u00a0 If we look at the data using the SQL Image Viewer hex viewer:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-358\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_02.png\" alt=\"\" width=\"786\" height=\"593\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_02.png 786w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_02-300x226.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_02-768x579.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_02-624x471.png 624w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/><\/p>\n<p>we can see that the OLE wrapper (or the original source data) begins at offset 32.\u00a0 This means that Financial Edge has added 32 bytes of data to the beginning of the original file, which is why SQL Image Viewer does not recognize the file format.<\/p>\n<p>To identify and extract the data correctly, we need to skip the first 32 bytes, so that we only retrieve the original source file.\u00a0 In SQL Server, we can use the following syntax:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-359\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_03.png\" alt=\"\" width=\"786\" height=\"762\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_03.png 786w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_03-300x291.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_03-768x745.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_03-624x605.png 624w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/><\/p>\n<p>Now, SQL Image Viewer is able to identify the file type correctly.<\/p>\n<p>Ok, admittedly not everybody knows what an OLE wrapper looks like, or any of the other file headers, which is why if SQL Image Viewer cannot identify your blobs, please send us a couple of samples to analyze.\u00a0 We need the data exactly as stored in your database, so to extract the data, please perform the following steps and send us the resulting files.<\/p>\n<p>Select the column containing the unidentified blob data.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-361\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_05.png\" alt=\"\" width=\"786\" height=\"593\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_05.png 786w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_05-300x226.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_05-768x579.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_05-624x471.png 624w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/><\/p>\n<p>Right click the mouse button to bring up the context menu, and select the &#8216;Save item&#8217; option.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-362\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_06.png\" alt=\"\" width=\"805\" height=\"595\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_06.png 805w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_06-300x222.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_06-768x568.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_06-624x461.png 624w\" sizes=\"(max-width: 805px) 100vw, 805px\" \/><\/p>\n<p>Enter a file name, save the blob data, and send the file to us at <a href=\"mailto:support@yohz.com\">support@yohz.com<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-364\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_07.png\" alt=\"\" width=\"674\" height=\"533\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_07.png 674w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_07-300x237.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2018\/11\/header_07-624x493.png 624w\" sizes=\"(max-width: 674px) 100vw, 674px\" \/><\/p>\n<p>The same issue applies to Access OLE Export and SQL Blob Export too.\u00a0 If these products cannot identify the file type because the original files have an additional header, they will be exported with a .bin extension.\u00a0 Please send us a couple of those .bin files to analyze, or you can also use SQL Image Viewer to retrieve the data and follow the steps above to send us the samples.<\/p>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fcbkbttn_like \"><fb:like href=\"https:\/\/www.yohz.com\/blogs\/2018\/11\/05\/why-is-sql-image-viewer-not-displaying-details-of-my-blobs\/\" action=\"like\" colorscheme=\"light\" layout=\"button\"  size=\"small\"><\/fb:like><\/div><div class=\"fb-share-button  \" data-href=\"https:\/\/www.yohz.com\/blogs\/2018\/11\/05\/why-is-sql-image-viewer-not-displaying-details-of-my-blobs\/\" data-type=\"button\" data-size=\"small\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>If you are using a third-party application to upload images and\/or files into your database, and SQL Image Viewer cannot identify the image or file type, then there&#8217;s a high probability that your application has modified the data. Examples of such applications include the MAZE School Information System and the Financial Edge system by Blackbaud.\u00a0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[17,44,5,11],"tags":[18,46,45,47,48,12],"_links":{"self":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/356"}],"collection":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/comments?post=356"}],"version-history":[{"count":6,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/356\/revisions"}],"predecessor-version":[{"id":368,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/356\/revisions\/368"}],"wp:attachment":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/media?parent=356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/categories?post=356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/tags?post=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}