I have just committed the new function, HashBinary() into the core 
OpenBD; available tomorrow morning in the nightly build.

   HashBinary( binaryObject | pathtofile, [hashing algorithm] )


Example that produces the same result:

   <cfset b = "e:\\tmp\\verylargefile.pdf">
   <cfdump var="#HashBinary( b )#">
   <cfdump var="#HashBinary( FileReadBinary(b) )#">

Naturally the one where you pass in the pathtofile is infinitely more 
efficient as we don't read the whole file into memory at once.

Thanks

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to