Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7177149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:39:08+00:00 2026-05-28T16:39:08+00:00

I am using an ANSI C compiler (LabWindows/CVI version 2010) to extract integer, string

  • 0

I am using an ANSI C compiler (LabWindows/CVI version 2010) to extract integer, string and floating point data from an existing Access 2010 database with good success. However, I have not been able to extract image data stored as long binary data into files (.jpg, or .tiff). I suspect this is not a difficult task once the technique is known, I just do not have experience with the code or technique to do this. Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:39:09+00:00Added an answer on May 28, 2026 at 4:39 pm

    I would expect that if you retrieve all of the data in the image column successfully, you only need to write it to a file using fwrite().

    The usual access pattern for retrieving long data from a column is to use a function that gets it one chunk at a time. This is how the ODBC function SQLGetData works; you pass it a fixed-length buffer and length, and its return value indicates that the data has been truncated, so you write the data you have to the file and then call it again until it returns a success code.

    Looking at the documentation for National Instruments LabWindows/CVI SQL Toolkit, the DBGetColBinaryBuffer() function can return the code -1, DB_TRUNCATION, which is described as “The buffer passed in to hold a result is not large enough to hold the result. A partial result has been returned in the buffer.”.

    I would guess that DBGetColBinaryBuffer() is designed to be used in a loop, and if you do so and write the partial results to a file, you will end up with a valid image.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using only ANSI C, what is the best way to, with fair certainty, determine
Using only ANSI C, is there any way to measure time with milliseconds precision
Using ASP.net, how do you write ANSI characters to a text file? I need
Using online interfaces to a version control system is a nice way to have
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters
I am currently starting out with programming micro controllers using C30 (A C compiler
I'm using cucumber to run some tests. It colorizes its output using ANSI escapes.
This note says: -ansi : tells the compiler to implement the ANSI language option.
One source with multiple objects I am using MSVS 2010 and I have a
I don't get it - what encoding should I use? I've been using ANSI,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.