Solved

TBlob Filed ...

Posted on 2004-07-30
3
3,101 Views
Last Modified: 2008-02-01
Hi,

I am using MySQL database and in one table I have created 3 BLOB field type where I am storing JPG Images.

I able to store Images.

Using Following code :

ImageTable.Append;
ImageTable.FieldByName('ScopyNo').asInteger := 1;
TBlobField(ImageTable.FieldByName('Image')).LoadFromFile('C:\'Crop.jpg');
TBlobField(ImageTable.FieldByName('FinalImage')).LoadFromFile('C:\Crop.jpg');
 ImageTable.Post;

But Now I want to EDIT existing BLOB field value, So I using Following code:

ImageTable.Edit;
ImageTable.FieldByName('ScopyNo').asInteger := 2;
TBlobField(ImageTable.FieldByName('Image')).LoadFromFile('C:\'Crop.jpg');
TBlobField(ImageTable.FieldByName('FinalImage')).LoadFromFile('C:\Crop.jpg');
 ImageTable.Post;

But both BLOB fiels unable to store new image.

Please guide me what is the problem or is there other way to make changes in the field value.

Thanks & Regards,

0
Comment
Question by:smartvanl5
3 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 50 total points
Comment Utility
?? usual it should work this way

two possibilities:
- no commit
- you store the same picture again
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

17 Experts available now in Live!

Get 1:1 Help Now