Solved

How to load and read Word doc from the Blob field

Posted on 2002-07-11
2
145 Views
Last Modified: 2010-04-04
My problem is that when I try to read TBlobStream with CopyFrom property into TFileStream, I see in the file also object decription header from MS Access. Notice: I'm using mdb database and I'm feeding its tables under Access control (maybe it has some importance to the problem). How to receive valid doc or xls files from the Blob field?
0
Comment
Question by:Skorup
2 Comments
 
LVL 22

Accepted Solution

by:
mnasman earned 200 total points
Comment Utility
Hello

  it's easier to use LoadFromFile, and SaveToFile methods, to store and reteitrve the BLob files to and from the database

but you have to add the fields to field editor first, and every thing will work

// to save the file to the db
  Table1BlobFile.LoadFromFile(OpenDialog1.FileName);
// to load the file from db
  Table1BlobFile.SaveToFile(SaveDialog1.FileName);

and how us some of ur code to see where's the problem

Best regards
0
 

Expert Comment

by:CleanupPing
Comment Utility
Skorup:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Display a PDF file and get words from it 6 96
APK file name 7 63
Delphi with SQL Natvie Client 15 72
code issue 8 84
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now