Click here to Skip to main content
15,891,762 members
Home / Discussions / C#
   

C#

 
QuestionSystem.Diagnostics.Process.Start Pin
CoderOnline2-Dec-09 6:27
CoderOnline2-Dec-09 6:27 
AnswerRe: System.Diagnostics.Process.Start Pin
Saksida Bojan2-Dec-09 6:32
Saksida Bojan2-Dec-09 6:32 
GeneralRe: System.Diagnostics.Process.Start....modified Pin
CoderOnline2-Dec-09 6:34
CoderOnline2-Dec-09 6:34 
GeneralRe: System.Diagnostics.Process.Start....modified Pin
Saksida Bojan2-Dec-09 6:37
Saksida Bojan2-Dec-09 6:37 
GeneralRe: System.Diagnostics.Process.Start....modified Pin
Saksida Bojan2-Dec-09 6:50
Saksida Bojan2-Dec-09 6:50 
GeneralRe: System.Diagnostics.Process.Start....modified Pin
CoderOnline2-Dec-09 7:08
CoderOnline2-Dec-09 7:08 
Questionwia temp picture problem Pin
mehrdad3332-Dec-09 6:18
mehrdad3332-Dec-09 6:18 
QuestionGZipStream problem Pin
zeeShan anSari2-Dec-09 6:03
zeeShan anSari2-Dec-09 6:03 
hi all,
for compress the pdf file i use below code:

byte[] bufferWrite;

           FileStream fsSource;

           FileStream fsDest;
           GZipStream gzCompressed;
           fsSource = new FileStream(@"C:\Invoice.pdf", FileMode.Open, FileAccess.Read, FileShare.Read);

           bufferWrite = new byte[fsSource.Length];

           fsSource.Read(bufferWrite, 0, bufferWrite.Length);

           fsDest = new FileStream(@"C:\Invoice.zip", FileMode.OpenOrCreate, FileAccess.Write);

           gzCompressed = new GZipStream(fsDest, CompressionMode.Compress, true);

           gzCompressed.Write(bufferWrite, 0, bufferWrite.Length);

           fsSource.Close();
           gzCompressed.Close();
           fsDest.Close();


pdf file compress successfully but without extension(.pdf) .......where is problem?
AnswerRe: GZipStream problem Pin
harold aptroot2-Dec-09 6:08
harold aptroot2-Dec-09 6:08 
GeneralRe: GZipStream problem Pin
zeeShan anSari2-Dec-09 6:19
zeeShan anSari2-Dec-09 6:19 
GeneralRe: GZipStream problem Pin
Shameel2-Dec-09 6:58
professionalShameel2-Dec-09 6:58 
GeneralRe: GZipStream problem Pin
harold aptroot2-Dec-09 7:02
harold aptroot2-Dec-09 7:02 
GeneralRe: GZipStream problem Pin
Saksida Bojan2-Dec-09 7:11
Saksida Bojan2-Dec-09 7:11 
QuestionFtpWebRequest - multiple file upload PinPopular
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 
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 

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.