Click here to Skip to main content
15,907,492 members
Home / Discussions / C#
   

C#

 
GeneralRe: GZipStream problem Pin
Saksida Bojan2-Dec-09 7:11
Saksida Bojan2-Dec-09 7:11 
QuestionFtpWebRequest - multiple file upload Pin
Member 10339072-Dec-09 5:48
Member 10339072-Dec-09 5:48 
QuestionFile compare - CRC? Pin
jbradshaw2-Dec-09 5:38
jbradshaw2-Dec-09 5:38 
AnswerRe: File compare - CRC? [modified] Pin
Saksida Bojan2-Dec-09 5:56
Saksida Bojan2-Dec-09 5:56 
AnswerRe: File compare - CRC? Pin
harold aptroot2-Dec-09 6:04
harold aptroot2-Dec-09 6:04 
AnswerRe: File compare - CRC? Pin
Luc Pattyn2-Dec-09 6:50
sitebuilderLuc Pattyn2-Dec-09 6:50 
AnswerRe: File compare - CRC? Pin
PIEBALDconsult2-Dec-09 17:03
mvePIEBALDconsult2-Dec-09 17:03 
GeneralRe: File compare - CRC? Pin
jbradshaw3-Dec-09 3:13
jbradshaw3-Dec-09 3:13 
I know the files won't change once I have calculated the CRC for them.

All I really need is a unique number on the contents of the file so that later if I have two files, I can compare those numbers instead of having to do a byte by byte comparison.

Here's what I'm trying to do in a nutshell.

Somebody uploads a file to my website.
I store the file for long term storage ( just go with it ).
Somebody uploads another file to my website.
If the file is the same as any of the files I've already stored, don't store it again otherwise store the file.
Somebody uploads another file to my website.
If the file is the same as any of the files....

So really I want to make sure I only have distinct files on the server. I don't have a problem with it being uploaded multiple times, I'd just like to have it so that the file is retained(stored) only once.

I figured by doing some kind of CRC check, I could get the CRC when the file is uploaded and then check the DB for any other files with the CRC. If not, add it to the DB with the CRC and go one. If the file already exists, don't bother saving it and delete the file from the upload area.

TIA - Jeff.
GeneralRe: File compare - CRC? Pin
PIEBALDconsult3-Dec-09 4:16
mvePIEBALDconsult3-Dec-09 4:16 
GeneralRe: File compare - CRC? Pin
jbradshaw3-Dec-09 9:51
jbradshaw3-Dec-09 9:51 
GeneralRe: File compare - CRC? Pin
PIEBALDconsult3-Dec-09 10:43
mvePIEBALDconsult3-Dec-09 10:43 
QuestionHow to Disable Repair in VisualStudio2008 Setup Project? Pin
Narendra Reddy Vajrala2-Dec-09 5:16
Narendra Reddy Vajrala2-Dec-09 5:16 
Questionmerge two projects Pin
jashimu2-Dec-09 5:07
jashimu2-Dec-09 5:07 
AnswerRe: merge two projects Pin
Narendra Reddy Vajrala2-Dec-09 5:20
Narendra Reddy Vajrala2-Dec-09 5:20 
QuestionPass a struct array to C++ to get data Pin
songll2-Dec-09 4:06
songll2-Dec-09 4:06 
AnswerRe: Pass a struct array to C++ to get data Pin
KarstenK2-Dec-09 4:40
mveKarstenK2-Dec-09 4:40 
AnswerRe: Pass a struct array to C++ to get data Pin
Richard MacCutchan2-Dec-09 5:02
mveRichard MacCutchan2-Dec-09 5:02 
GeneralRe: Pass a struct array to C++ to get data Pin
songll2-Dec-09 6:05
songll2-Dec-09 6:05 
GeneralRe: Pass a struct array to C++ to get data Pin
Richard MacCutchan2-Dec-09 6:54
mveRichard MacCutchan2-Dec-09 6:54 
QuestionDynamic Image in Report Viewer? Pin
CelestialCoder2-Dec-09 4:03
CelestialCoder2-Dec-09 4:03 
AnswerRe: Dynamic Image in Report Viewer? Pin
Dave Kreskowiak2-Dec-09 4:22
mveDave Kreskowiak2-Dec-09 4:22 
QuestionDoes anyone know a how / have code to associate your app with a file extension that works in XP, Vista AND Win7 ? Pin
L.Denninger2-Dec-09 2:30
L.Denninger2-Dec-09 2:30 
AnswerRe: Does anyone know a how / have code to associate your app with a file extension that works in XP, Vista AND Win7 ? Pin
Dave Kreskowiak2-Dec-09 4:20
mveDave Kreskowiak2-Dec-09 4:20 
QuestionZedgraph C# how to Pin
vitor282-Dec-09 1:00
vitor282-Dec-09 1:00 
AnswerRe: Zedgraph C# how to Pin
Ashfield2-Dec-09 1:23
Ashfield2-Dec-09 1: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.