Hi There,
Please help me!!
I need to compare two objects which are blob data type.
eg: defined two temp-tables such as
define temp-table tt-table1 no-undo
field tt-bfield1 as blob.
define temp-table tt-table2 no-undo
field tt-bfield2 as blob.
copied some images to these two tables using copy-lob.
now i need to execute some code only if there any difference between these two fields.
ie,
for each tt-table1:
find first tt-table2.
if tt-bfield1 <> tt-bfield2 then
message "Here it goes" view-as alert-box.
end.
this statement is success only if the image loaded into both the table are different.
I have loaded same image with some changes, say content is changed slightly in one.
In this case the code is failing. So please suggest me how to compare the blob objects?
I can not use memptr and compare each byte because the image size may be 512 kb.
Thanks in advance,
Praneesh
Please help me!!
I need to compare two objects which are blob data type.
eg: defined two temp-tables such as
define temp-table tt-table1 no-undo
field tt-bfield1 as blob.
define temp-table tt-table2 no-undo
field tt-bfield2 as blob.
copied some images to these two tables using copy-lob.
now i need to execute some code only if there any difference between these two fields.
ie,
for each tt-table1:
find first tt-table2.
if tt-bfield1 <> tt-bfield2 then
message "Here it goes" view-as alert-box.
end.
this statement is success only if the image loaded into both the table are different.
I have loaded same image with some changes, say content is changed slightly in one.
In this case the code is failing. So please suggest me how to compare the blob objects?
I can not use memptr and compare each byte because the image size may be 512 kb.
Thanks in advance,
Praneesh