Results 1 to 5 of 5
  1. #1
    djoosten is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2011
    Location
    Wisconsin
    Posts
    7

    Question Converting Pictures to Base64 string and back

    I have developed an Access application that uses Access as a Front-end database with all data coming from linked SQL Server tables. One of the SQL Server tables contains a text field which I am told contains Base 64 string data representing photos and other file types. I need to extract these photos to an Image Control on a form so that I can view them. Does anyone know what is required to do this?



    I would also like to be able to convert .jpg pictures files to the Base 64 string to store in the text field.

    Any help I can get to point me to some code to do this would be appreciated.

  2. #2
    Max D's Avatar
    Max D is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    63
    You are making things complex a bit. If you want to develop your DB instead of spending days writing a picture-around functionality, give a try to the component for images we have developed - http://access.bukrek.net/

    It will handle all the imaging operations automaticly, just place it on form and link to the BLOB field. No coding.

  3. #3
    djoosten is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2011
    Location
    Wisconsin
    Posts
    7
    The back-end database in my case is a SQL table with a varchar field that holds a Base 64 text string. I do not control the BE database but I need to be able to see the photos in my Access database. I am already using a Activex control that can be bound to an Image field but not a Base64 text string. I need to do a conversion. Does Access Imagine allow me to bind to a Base64 text string or can it do the conversion?

  4. #4
    Max D's Avatar
    Max D is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    63
    Thats sad, that you doesn't have an ability to change the BE. There is no need to use Base64 for images really in this case.

    AccessImagine doesn't have functionality for Base64 - there was no requests for this before.

    You need to perform a conversion by your own. Here is a code for this - http://www.source-code.biz/snippets/vbasic/12.htm

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Thanks for helping out here Max!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 07-03-2010, 08:45 PM
  2. Linking pictures
    By cowboy in forum Access
    Replies: 4
    Last Post: 02-15-2010, 05:39 PM
  3. Pictures sizing
    By newtoAccess in forum Access
    Replies: 0
    Last Post: 11-22-2009, 10:10 AM
  4. Converting/Viewing OLE Data as String...
    By oldgem in forum Access
    Replies: 0
    Last Post: 09-12-2009, 06:35 PM
  5. Using Pictures as varibles in a form
    By PPTom in forum Access
    Replies: 1
    Last Post: 08-18-2009, 04:05 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums