Solved

TBlob Filed ...

Posted on 2004-07-30
3
3,110 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
[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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

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