You should add a case to compare the size before using the digest method. Another option not mentioned is comparing the BASE64 encoding. No idea how that might compare with generating a digest.
John DeSoi, Ph.D. > On Nov 8, 2017, at 12:47 AM, Wayne Stewart via 4D_Tech <[email protected]> > wrote: > > Case of > : (BLOB size($oldBLOB_x)=0) & (BLOB size($CurrentField_ptr->)=0) > : (Generate digest($oldBLOB_x;MD5 digest)=Generate > digest($CurrentField_ptr->;MD5 digest)) > Else > // It's different > End case > > Is there a more efficient mechanism? ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

