Solved

TBlob Filed ...

Posted on 2004-07-30
3
3,104 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
ID: 11701088
?? usual it should work this way

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

914 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

20 Experts available now in Live!

Get 1:1 Help Now