Solved

How to load and read Word doc from the Blob field

Posted on 2002-07-11
2
147 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:
Mohammed Nasman earned 200 total points
ID: 7146092
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
ID: 9343072
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

772 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