Click here to Skip to main content
15,914,488 members
Home / Discussions / C#
   

C#

 
GeneralRe: Async await error Pin
Mycroft Holmes1-May-20 12:18
professionalMycroft Holmes1-May-20 12:18 
AnswerRe: Async await error Pin
Carlos582-May-20 4:01
Carlos582-May-20 4:01 
GeneralRe: Async await error Pin
Dave Kreskowiak2-May-20 4:52
mveDave Kreskowiak2-May-20 4:52 
GeneralRe: Async await error Pin
Luc Pattyn2-May-20 9:18
sitebuilderLuc Pattyn2-May-20 9:18 
AnswerRe: Async await error Pin
Gerry Schmitz3-May-20 18:34
mveGerry Schmitz3-May-20 18:34 
AnswerRe: Async await error Pin
Richard Deeming5-May-20 1:16
mveRichard Deeming5-May-20 1:16 
QuestionHow to get a list og Outgoing MSMQ queues (without mention its knowing name) ? Pin
boozeeh11-May-20 5:01
boozeeh11-May-20 5:01 
AnswerRe: How to get a list og Outgoing MSMQ queues (without mention its knowing name) ? Pin
Luc Pattyn1-May-20 7:43
sitebuilderLuc Pattyn1-May-20 7:43 
GeneralRe: How to get a list og Outgoing MSMQ queues (without mention its knowing name) ? Pin
boozeeh11-May-20 12:20
boozeeh11-May-20 12:20 
GeneralRe: How to get a list og Outgoing MSMQ queues (without mention its knowing name) ? Pin
Luc Pattyn1-May-20 13:43
sitebuilderLuc Pattyn1-May-20 13:43 
GeneralRe: How to get a list og Outgoing MSMQ queues (without mention its knowing name) ? Pin
boozeeh12-May-20 1:31
boozeeh12-May-20 1:31 
QuestionUse DLL in C# Pin
Member 1481764029-Apr-20 15:16
Member 1481764029-Apr-20 15:16 
AnswerRe: Use DLL in C# Pin
Dave Kreskowiak29-Apr-20 16:56
mveDave Kreskowiak29-Apr-20 16:56 
AnswerRe: Use DLL in C# Pin
Luc Pattyn29-Apr-20 17:11
sitebuilderLuc Pattyn29-Apr-20 17:11 
AnswerRe: Use DLL in C# Pin
Eddy Vluggen30-Apr-20 9:34
professionalEddy Vluggen30-Apr-20 9:34 
AnswerRe: Use DLL in C# Pin
kalberts2-May-20 4:40
kalberts2-May-20 4:40 
QuestionCan not compare a file and same file stored in mysql - sha256 Pin
wilcodk29-Apr-20 7:40
wilcodk29-Apr-20 7:40 
AnswerRe: Can not compare a file and same file stored in mysql - sha256 Pin
Luc Pattyn29-Apr-20 8:07
sitebuilderLuc Pattyn29-Apr-20 8:07 
Hi,

I'm not familiar with the MySql connector, and I tend not to store files in databases (it does not make much sense to me, it only inflates the DB size). However I noted what follows:

at the bottom of your code there is a while loop, wherein you call Sha256.ComputeHash.

That piece of code looks very suspicious: what remains is just the SHA256 of the last loop iteration, so either you only have one iteration (and the while should be an if), or your logic is wrong (you should collect all the data and then calculate SHA256 on the whole thing).

You could try with a small file, say less than 1KB. Or you could track the while loop behavior, either by adding an output statement, or by using a debugger...

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: Can not compare a file and same file stored in mysql - sha256 Pin
wilcodk30-Apr-20 1:32
wilcodk30-Apr-20 1:32 
AnswerRe: Can not compare a file and same file stored in mysql - sha256 Pin
Mycroft Holmes29-Apr-20 12:18
professionalMycroft Holmes29-Apr-20 12:18 
GeneralRe: Can not compare a file and same file stored in mysql - sha256 Pin
wilcodk30-Apr-20 1:28
wilcodk30-Apr-20 1:28 
AnswerRe: Can not compare a file and same file stored in mysql - sha256 Pin
Eddy Vluggen30-Apr-20 6:34
professionalEddy Vluggen30-Apr-20 6:34 
QuestionCompare string time to timer time (noobie) Pin
Member 1481029228-Apr-20 5:36
Member 1481029228-Apr-20 5:36 
AnswerRe: Compare string time to timer time (noobie) Pin
Gerry Schmitz28-Apr-20 6:48
mveGerry Schmitz28-Apr-20 6:48 
QuestionResize and move a drawn rectangle in win forms Pin
Member 1223285027-Apr-20 12:23
Member 1223285027-Apr-20 12:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.