+ Reply to Thread
Results 1 to 6 of 6

Display images in excel from SQL BLOB data

  1. #1
    Registered User
    Join Date
    02-18-2015
    Location
    Fr
    MS-Off Ver
    2013
    Posts
    14

    Display images in excel from SQL BLOB data

    HI everyone,
    I have a spreadsheet with a pivot table that pulls data out of a SQL database.
    One of the fields is an image stored in a BLOB, is there a way I can display this image within Excel?

    Thanks a lot

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Display images in excel from SQL BLOB data

    Have a look here, http://support.microsoft.com/en-us/kb/258038

    BLOBs are just binary data, so you can either use the ADO stream object in the linked page or write as Binary. Once you've got the image then you can insert it into the workbook as you would any other image

  3. #3
    Registered User
    Join Date
    02-18-2015
    Location
    Fr
    MS-Off Ver
    2013
    Posts
    14

    Re: Display images in excel from SQL BLOB data

    Thank you for your answer.
    First time I hear about the ADO stream object, is it the only way to deal with BLOB images?
    Last edited by neFAST; 04-01-2015 at 12:13 PM.

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Display images in excel from SQL BLOB data

    No, you can use the vb native writer: http://www.vb6.us/tutorials/reading-...s-visual-basic

    Though I'd use a stream as I find it cleaner

  5. #5
    Registered User
    Join Date
    02-18-2015
    Location
    Fr
    MS-Off Ver
    2013
    Posts
    14

    Re: Display images in excel from SQL BLOB data

    Will I need to save the image on disk or can I work with binary data?

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Display images in excel from SQL BLOB data

    I think you'll need to save the image on the disk, but I may be wrong

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Excel 2010 - Use VBA to display only relevant images
    By Duluth06ChE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2012, 02:40 PM
  2. [SOLVED] Is there any way to display URL images in an Excel spreadsheet?
    By kennyharrill in forum Excel General
    Replies: 0
    Last Post: 03-13-2006, 05:10 PM
  3. [SOLVED] display hyperlinked images in an excel spreadsheet
    By ll in forum Excel General
    Replies: 0
    Last Post: 02-28-2006, 12:40 PM
  4. Showing BLOB data
    By Piotr in forum Excel General
    Replies: 0
    Last Post: 12-27-2005, 10:20 AM
  5. Replies: 4
    Last Post: 10-05-2005, 11:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1