Steve
05/09/2024, 4:53 AMvar checksum = createObject( "java", "java.util.zip.CRC32" ).init();
checksum.update( charsetDecode( input, "utf-8" ) );
var crc = javaCast("int",checksum.getValue());
crc I need inserted into a sql table:
...
crc: { value:"#crc#", cfsqltype:"integer" },
...
The problem is, checksum.getValue() returns a long int (signed) because java does not support unsigned int32. But my google expertise is failing me here and I cannot find a simple solution.Adam Cameron