Click here to Skip to main content
15,915,336 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hungarian notation Pin
Tom Archer7-May-02 12:20
Tom Archer7-May-02 12:20 
GeneralRe: Hungarian notation Pin
Ludwig Stuyck8-May-02 4:22
Ludwig Stuyck8-May-02 4:22 
GeneralRadioButton help Pin
6-May-02 16:26
suss6-May-02 16:26 
GeneralDesigners and Components Pin
6-May-02 12:05
suss6-May-02 12:05 
GeneralRe: Designers and Components Pin
James T. Johnson6-May-02 18:42
James T. Johnson6-May-02 18:42 
GeneralFile sending Pin
CSharpLady6-May-02 5:13
CSharpLady6-May-02 5:13 
GeneralRe: File sending Pin
James T. Johnson6-May-02 18:46
James T. Johnson6-May-02 18:46 
Generalserialization and encryption Pin
6-May-02 3:08
suss6-May-02 3:08 
Hi
I am first serialising an object and then to a *.dat
file
like this:
public void SerializeNow(DataSet dsout)
{
FileStream fs = new FileStream
(@"c:\scrpe1.dat",FileMode.Create);
BinaryFormatter b = new
BinaryFormatter();
b.Serialize(fs,dsout);
fs.Close();
}

and then I am trying to encrpt it using this Microsoft
code at

http://support.microsoft.com/default.aspx?scid=kb;EN-
US;q307010

Then I decrypt it which is good also.

Then I try to deserialise it where the problem occurs
and it gives me
an
error saying:
"Binary stream does not contain a valid BinaryHeader, 0
possible
causes,
invalid stream or object version change between
serialization and
deserialization"


If Do not do the inbetween encrypt and decrypt then
everything works
fine
no errors in deserialization.


What can be the problem???


Paresh.

Cry | :((
GeneralRe: serialization and encryption Pin
James T. Johnson6-May-02 11:42
James T. Johnson6-May-02 11:42 
Generaltiff-encoder probs Pin
Rüpel6-May-02 0:56
Rüpel6-May-02 0:56 
GeneralRe: tiff-encoder probs Pin
Rüpel6-May-02 2:14
Rüpel6-May-02 2:14 
General[Controls] HTMLView or HTMLBaseDialog Pin
tomiga5-May-02 21:28
tomiga5-May-02 21:28 
GeneralRe: [Controls] HTMLView or HTMLBaseDialog Pin
James T. Johnson5-May-02 23:11
James T. Johnson5-May-02 23:11 
GeneralRe: [Controls] HTMLView or HTMLBaseDialog Pin
Nick Parker6-May-02 6:00
protectorNick Parker6-May-02 6:00 
Generalpuzzle on dtd declare in xml Pin
5-May-02 19:34
suss5-May-02 19:34 
GeneralRe: puzzle on dtd declare in xml Pin
James T. Johnson6-May-02 18:50
James T. Johnson6-May-02 18:50 
GeneralWebcam Pin
5-May-02 8:35
suss5-May-02 8:35 
GeneralRe: Webcam Pin
Nick Parker5-May-02 16:36
protectorNick Parker5-May-02 16:36 
GeneralRe: Webcam Pin
RIPPER_X5-May-02 23:05
RIPPER_X5-May-02 23:05 
Questionwhere I can find Coding Conventions for C#? Pin
gicio5-May-02 7:16
gicio5-May-02 7:16 
AnswerRe: where I can find Coding Conventions for C#? Pin
Nish Nishant5-May-02 9:34
sitebuilderNish Nishant5-May-02 9:34 
AnswerRe: where I can find Coding Conventions for C#? Pin
Tom Archer5-May-02 10:26
Tom Archer5-May-02 10:26 
AnswerRe: where I can find Coding Conventions for C#? Pin
James T. Johnson5-May-02 14:21
James T. Johnson5-May-02 14:21 
AnswerRe: where I can find Coding Conventions for C#? Pin
Nick Parker5-May-02 16:27
protectorNick Parker5-May-02 16:27 
GeneralRe: where I can find Coding Conventions for C#? Pin
Tom Archer5-May-02 16:31
Tom Archer5-May-02 16:31 

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.