Solved

How to load and read Word doc from the Blob field

Posted on 2002-07-11
2
149 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

739 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