Bug Fix: Send to Smugmug, MD5 Computation

luke_churchluke_church Registered Users Posts: 507 Major grins
Hi Omar et al,

Posting here in the hope that it will help any other people who are using your library or have hit the same problem.

The commented out code that generates the MD5 and byte counts to send to Smugmug needs a slight modification and then it seems to work :): (though I haven't done extensive testing)

Line:
 
buff.Append(String.Format("{0:X1}", hashByte));
 

needs to become:
 
buff.Append(String.Format("{0:x2}", hashByte));
 


As SM uses 0 padded lower case bytes for it's MD5 computation.

Once this change has been made the MD5s agree correctly, and only un-damaged images appear :):

Hope this helps,

Luke
Sign In or Register to comment.