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

  • Home
  • SEARCH
  • 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 8845385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:43:38+00:00 2026-06-14T11:43:38+00:00

I am writing a code in VB6 to save and retrieve an image in

  • 0

I am writing a code in VB6 to save and retrieve an image in .dbf file, but i don’t know what field type to take in dbf file. Can anyone suggest what field should i take in dbf file and what code should i write in VB6 ??
Thanks in advance..

  • 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-06-14T11:43:40+00:00Added an answer on June 14, 2026 at 11:43 am

    I have done it in Memo Fields long ago. The code is in foxpro. See:

    CREATE TABLE Abc.dbf Free (Filename c(50), Store M(4)) &&Create a table with FileName character field
    

    *And Store as memo field

    1.

    Append blank &&to add a blank record
    APPEND MEMO store from "D:\Shah.Jpg" overwrite 
    *This will copy the contents of the file. If Overwrite is ignored, and the memo has some contents,
    *The contents of the file will be appended to it, which should be avoided.
    REPLACE filename WITH "Shah.Jpg"
    *Add as many files as you wish to other records.
    Copy memo Store to "SomePhoto.jpg" && will copy to the default folder
    *Or 
    Copy memo store to "c:\MyPhotos\Shah.JPG" &&You must save or know the extension of the file
    

    2.

    append blank
    filedata=FILETOSTR("D:\Shah.JPG")
    REPLACE store WITH filedata
    STRTOFILE(store,"SomeFileName.JPG")
    *OR
    STRTOFILE(store,"c:\MyPhotos\SomeFileName.JPG")
    

    It should solve your problem.

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

Sidebar

Related Questions

When writing code errors, warnings and notices can occur. I know the idea behind
I am writing code to read and write a text file. But when I
While writing code in a file that would comprise of PHP, HTML, CSS &
I am writing code to clone object but have no cue from Hobo documentation.
I'm writing code in PHP that requires including a config.php file depending on the
I am writing code to check whether a file exists or not. If the
I am writing VB6.0 projects (DLL with COM+) starting from previously written code. I
When writing code in Python, how can you write something next to it that
Writing code in PHP, how can I ensure the require_once path of a script
I am new to writing code, but am learning C# and am making a

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.