Click here to Skip to main content
15,916,432 members
Home / Discussions / C#
   

C#

 
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 
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 
Well, if I wanted to save an Image along with additional info, I would (as I am using NTFS) use alternate data streams to store my info.

This means, any Image-Processor can still load that file (if the image is in a common format) and my program could utilize the additional data streams attached to the image file.

If you really need to save everything into one stream, try writing an offset first.

This means:

Save into the very first bytes of your file (lets say: the first 4 bytes) an integer which contains the exact location at which the image data begins.
So: you format your information (be sure to have some kind of delimiter or such) and store it into a string.

Get the length of that string, add 4 and save that integer into your file (BINARY format, not as a string).

Then, append your info-string and the image-data.

That way you will be able to jump to the image data directly, without having to parse the info first.

Thats all.

Sid
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 
GeneralRe: Events.... Pin
ABBASI_RA4-Mar-05 3:12
ABBASI_RA4-Mar-05 3:12 
GeneralTrying to Programmatically Modify DataSet-databound Control Pin
Newbie_T3-Mar-05 16:19
Newbie_T3-Mar-05 16:19 
GeneralThread Pausing & Timer Pin
Bob Bonser3-Mar-05 16:13
Bob Bonser3-Mar-05 16:13 
GeneralRe: Thread Pausing & Timer Pin
Stefan Troschuetz3-Mar-05 21:34
Stefan Troschuetz3-Mar-05 21:34 
GeneralRe: Thread Pausing & Timer Pin
James Poulose4-Mar-05 1:40
James Poulose4-Mar-05 1:40 

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.