Click here to Skip to main content
15,908,264 members
Home / Discussions / C#
   

C#

 
QuestionDynamic Columns in Entity Framework Pin
sengottuvel m18-Jul-13 2:28
sengottuvel m18-Jul-13 2:28 
AnswerRe: Dynamic Columns in Entity Framework Pin
Richard MacCutchan18-Jul-13 3:15
mveRichard MacCutchan18-Jul-13 3:15 
Questionhow to execute a wrapped oracle procedures using C# Pin
M_MA18-Jul-13 0:36
M_MA18-Jul-13 0:36 
QuestionUsing Axis Media Control SDK with EMGU CV to do a C# Winform application. Pin
Ervin Loong17-Jul-13 23:10
Ervin Loong17-Jul-13 23:10 
QuestionHelp Regarding OPEN XML, Pin
meetnneel17-Jul-13 6:16
meetnneel17-Jul-13 6:16 
AnswerRe: Help Regarding OPEN XML, Pin
Dave Kreskowiak17-Jul-13 7:24
mveDave Kreskowiak17-Jul-13 7:24 
GeneralRe: Help Regarding OPEN XML, Pin
BillWoodruff17-Jul-13 17:25
professionalBillWoodruff17-Jul-13 17:25 
GeneralRe: Help Regarding OPEN XML, Pin
Dave Kreskowiak17-Jul-13 18:00
mveDave Kreskowiak17-Jul-13 18:00 
GeneralRe: Help Regarding OPEN XML, Pin
BillWoodruff17-Jul-13 18:11
professionalBillWoodruff17-Jul-13 18:11 
GeneralRe: Help Regarding OPEN XML, Pin
Dave Kreskowiak18-Jul-13 2:09
mveDave Kreskowiak18-Jul-13 2:09 
AnswerRe: Help Regarding OPEN XML, Pin
BillWoodruff17-Jul-13 17:28
professionalBillWoodruff17-Jul-13 17:28 
QuestionUsing Binary Serialization and GZip ? Pin
BillWoodruff17-Jul-13 3:14
professionalBillWoodruff17-Jul-13 3:14 
AnswerRe: Using Binary Serialization and GZip ? Pin
Richard Deeming17-Jul-13 4:02
mveRichard Deeming17-Jul-13 4:02 
GeneralRe: Using Binary Serialization and GZip ? Pin
BillWoodruff17-Jul-13 15:07
professionalBillWoodruff17-Jul-13 15:07 
AnswerRe: Using Binary Serialization and GZip ? Pin
Eddy Vluggen17-Jul-13 5:07
professionalEddy Vluggen17-Jul-13 5:07 
GeneralRe: Using Binary Serialization and GZip ? Pin
BillWoodruff17-Jul-13 16:52
professionalBillWoodruff17-Jul-13 16:52 
Thanks, Eddy !

Your code works with a MemoryStream that has been Gzipped, Serialized, and written to a file.

The 'leaveopen parameter ... in both gzip, and un-gzip ... appears to be redundant: my implementation of your code works with, or without, them.

It compresses a 9mb object=>source-stream to a little over 3mb disk file, whether Compression setting is 'Fastest, or 'Optimal.

"Raising the stakes" from 100k to 1 million total objects yielded a 98+ megabyte MemoryStream that Gzipped to a 30.6mb file with both 'Optimal, and 'Fastest compression. That does make me question the efficiency of Gzip in .NET.

But (hypothesis), perhaps the complex object I am Gzipping and Serializing is, by its nature not highly compressible ?

It is much better to have working code you don't quite understand, than to have code you believe you understand, and expect to work, that does not work Smile | :)

When I feel like I fully understand how I "strayed onto the wrong path" for so many hours, yesterday, and understand exactly why your code works, I feel I should write up a Tip-Trick for CP.

I didn't realize that by using a ".gz" extension to the files I created I was creating something that could be opened with WinRar !

yours, Bill

~

"This isn't right. This isn't even wrong." Wolfgang Pauli"

GeneralRe: Using Binary Serialization and GZip ? Pin
Eddy Vluggen18-Jul-13 6:32
professionalEddy Vluggen18-Jul-13 6:32 
GeneralRe: Using Binary Serialization and GZip ? Pin
BillWoodruff18-Jul-13 17:00
professionalBillWoodruff18-Jul-13 17:00 
GeneralRe: Using Binary Serialization and GZip ? Pin
Eddy Vluggen19-Jul-13 7:30
professionalEddy Vluggen19-Jul-13 7:30 
GeneralRe: Using Binary Serialization and GZip ? Pin
harold aptroot18-Jul-13 7:17
harold aptroot18-Jul-13 7:17 
GeneralRe: Using Binary Serialization and GZip ? Pin
BillWoodruff18-Jul-13 17:04
professionalBillWoodruff18-Jul-13 17:04 
AnswerRe: Using Binary Serialization and GZip ? Pin
Ennis Ray Lynch, Jr.17-Jul-13 7:11
Ennis Ray Lynch, Jr.17-Jul-13 7:11 
GeneralRe: Using Binary Serialization and GZip ? Pin
BillWoodruff17-Jul-13 17:02
professionalBillWoodruff17-Jul-13 17:02 
QuestionWebBrowser and swf textbox and button Pin
Member 843530717-Jul-13 2:11
Member 843530717-Jul-13 2:11 
AnswerRe: WebBrowser and swf textbox and button Pin
Amir Mohammad Nasrollahi29-Jul-13 6:33
professionalAmir Mohammad Nasrollahi29-Jul-13 6:33 

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.