Solved

How to load and read Word doc from the Blob field

Posted on 2002-07-11
2
148 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

820 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