Click here to Skip to main content
15,910,603 members
Home / Discussions / C#
   

C#

 
GeneralRe: help me plz Pin
Member 17782963-Mar-05 22:36
Member 17782963-Mar-05 22:36 
GeneralRe: help me plz Pin
J4amieC3-Mar-05 22:39
J4amieC3-Mar-05 22:39 
GeneralRe: question Pin
Member 17782964-Mar-05 1:58
Member 17782964-Mar-05 1:58 
GeneralRe: Pin
Member 17782966-Mar-05 18:47
Member 17782966-Mar-05 18:47 
QuestionHow to dynamically add and use controls at runtime (use custom Pin
oohungoo3-Mar-05 19:56
oohungoo3-Mar-05 19:56 
GeneralProblem with MDI Child form. Pin
Saurabh Mundhra3-Mar-05 19:44
Saurabh Mundhra3-Mar-05 19:44 
GeneralRe: Problem with MDI Child form. Pin
Pushkar Pathak15-Mar-05 20:43
Pushkar Pathak15-Mar-05 20:43 
GeneralRead / Write an Image file Pin
Rob Tomson3-Mar-05 17:20
Rob Tomson3-Mar-05 17:20 
I'm having problems trying to accomplish a certain task. I want to save some custom information about an image and then save the image itself in the same file. I can write and read my infomation by itself using a binary writer/reader but as soon as I try to throw a System.Drawing.Image in the mix things get messed up. Am I going about using the image correctly like this:
...<br />
System.IO.FileStream iStream = new System.IO.FileStream(FileName, System.IO.FileMode.Append, System.IO.FileAccess.Write);<br />
Image.Save(iStream, System.Drawing.Imaging.ImageFormat.Png);<br />
...


It seems to me that as soon as I do the above code the filestream gets all weird and I it's no longer in a readable format.

Please help,
Rob Tomson

--
There are 10 kinds of people. Those who understand binary and those who don't.

GeneralRe: Read / Write an Image file Pin
Yulianto.3-Mar-05 19:15
Yulianto.3-Mar-05 19:15 
GeneralRe: Read / Write an Image file Pin
Rob Tomson3-Mar-05 19:24
Rob Tomson3-Mar-05 19:24 
GeneralRe: Read / Write an Image file Pin
leppie3-Mar-05 20:36
leppie3-Mar-05 20:36 
GeneralRe: Read / Write an Image file Pin
Rob Tomson3-Mar-05 20:38
Rob Tomson3-Mar-05 20:38 
GeneralRe: Read / Write an Image file Pin
Sebastian Schneider3-Mar-05 22:24
Sebastian Schneider3-Mar-05 22:24 
GeneralRe: Read / Write an Image file Pin
Rob Tomson3-Mar-05 22:32
Rob Tomson3-Mar-05 22:32 
GeneralRe: Read / Write an Image file Pin
Sebastian Schneider3-Mar-05 22:40
Sebastian Schneider3-Mar-05 22:40 
GeneralRe: Read / Write an Image file Pin
Rob Tomson3-Mar-05 23:05
Rob Tomson3-Mar-05 23:05 
GeneralRe: Read / Write an Image file Pin
Sebastian Schneider3-Mar-05 23:08
Sebastian Schneider3-Mar-05 23:08 
Generalunable to see webcontrol on browser Pin
chandtec3-Mar-05 16:41
chandtec3-Mar-05 16:41 
GeneralRe: unable to see webcontrol on browser Pin
Yulianto.3-Mar-05 16:51
Yulianto.3-Mar-05 16:51 
GeneralRe:again i pasted code kindly see Pin
chandtec3-Mar-05 17:11
chandtec3-Mar-05 17:11 
Generalits geeting pasted , so i wrote code Pin
chandtec3-Mar-05 17:17
chandtec3-Mar-05 17:17 
Generali wrote code for button . its not getting displayed on this form Pin
chandtec3-Mar-05 17:24
chandtec3-Mar-05 17:24 
GeneralRe: i wrote code for button . its not getting displayed on this form Pin
Yulianto.3-Mar-05 17:46
Yulianto.3-Mar-05 17:46 
GeneralEvents.... Pin
ABBASI_RA3-Mar-05 16:24
ABBASI_RA3-Mar-05 16:24 
GeneralRe: Events.... Pin
s211197923-Mar-05 22:31
s211197923-Mar-05 22: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.