Click here to Skip to main content
15,890,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: Copy raw file image Pin
devvvy8-Aug-10 19:46
devvvy8-Aug-10 19:46 
GeneralRe: Copy raw file image Pin
Mustafa Ismail Mustafa8-Aug-10 20:13
Mustafa Ismail Mustafa8-Aug-10 20:13 
GeneralRe: Copy raw file image Pin
devvvy8-Aug-10 20:35
devvvy8-Aug-10 20:35 
GeneralRe: Copy raw file image Pin
Richard MacCutchan8-Aug-10 21:24
mveRichard MacCutchan8-Aug-10 21:24 
GeneralRe: Copy raw file image Pin
Thomas Krojer8-Aug-10 22:31
Thomas Krojer8-Aug-10 22:31 
GeneralRe: Copy raw file image Pin
Dave Kreskowiak9-Aug-10 1:42
mveDave Kreskowiak9-Aug-10 1:42 
GeneralRe: Copy raw file image Pin
Dave Kreskowiak9-Aug-10 1:41
mveDave Kreskowiak9-Aug-10 1:41 
AnswerRe: Copy raw file image Pin
Luc Pattyn9-Aug-10 1:26
sitebuilderLuc Pattyn9-Aug-10 1:26 
what do you mean by "raw file image"?
is it a file containing an image (i.e. header plus pixel data)?
is it a file containing the raw data of an image (i.e. pixel data only)?
is it the "image" of an executaable?

you can read( or write) all the bytes of a file at once using File.ReadAllBytes (WriteAllBytes).
If you don't want to have them all at once in memory, use a BinaryReader (BinaryWriter).

And what do you mean by "encoding"?
if it refers to the Encoding class, that one only applies to text.
if it refers to the way pixels get represented, that one is called PixelFormat.

Please learn to ask questions properly.

And don't say "it didn't run and OS complained invalid image", show the code and the exact compile-time or run-time error message(s).

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralMessage Removed Pin
9-Aug-10 2:52
devvvy9-Aug-10 2:52 
GeneralRe: thanks yes you understand me - i will post the code but you're suggesting this can't be done in dotnet? Pin
Luc Pattyn9-Aug-10 2:57
sitebuilderLuc Pattyn9-Aug-10 2:57 
GeneralRe: thanks yes you understand me - i will post the code but you're suggesting this can't be done in dotnet? Pin
devvvy9-Aug-10 3:06
devvvy9-Aug-10 3:06 
GeneralRe: thanks yes you understand me - i will post the code but you're suggesting this can't be done in dotnet? Pin
Luc Pattyn9-Aug-10 3:17
sitebuilderLuc Pattyn9-Aug-10 3:17 
GeneralRe: thanks yes you understand me - i will post the code but you're suggesting this can't be done in dotnet? Pin
devvvy9-Aug-10 17:31
devvvy9-Aug-10 17:31 
GeneralRe: thanks yes you understand me - i will post the code but you're suggesting this can't be done in dotnet? Pin
Thomas Krojer10-Aug-10 21:45
Thomas Krojer10-Aug-10 21:45 
Generalhey thanks it works! Pin
devvvy10-Aug-10 21:56
devvvy10-Aug-10 21:56 
GeneralRe: hey thanks it works! Pin
Thomas Krojer10-Aug-10 22:37
Thomas Krojer10-Aug-10 22:37 
GeneralRe: hey thanks it works! Pin
devvvy10-Aug-10 22:43
devvvy10-Aug-10 22:43 
AnswerRe: Copy raw file image Pin
Covean9-Aug-10 2:28
Covean9-Aug-10 2:28 
Generalthanks yes you understand me - i will post the code but you're suggesting this can't be done in dotnet? x Pin
devvvy9-Aug-10 3:07
devvvy9-Aug-10 3:07 
GeneralRe: thanks yes you understand me - i will post the code but you're suggesting this can't be done in dotnet? x Pin
Dave Kreskowiak9-Aug-10 3:43
mveDave Kreskowiak9-Aug-10 3:43 
GeneralRe: thanks yes you understand me - i will post the code but you're suggesting this can't be done in dotnet? x Pin
devvvy9-Aug-10 17:32
devvvy9-Aug-10 17:32 
GeneralRe: thanks yes you understand me - i will post the code but you're suggesting this can't be done in dotnet? x Pin
Dave Kreskowiak10-Aug-10 2:04
mveDave Kreskowiak10-Aug-10 2:04 
GeneralRe: thanks yes you understand me - i will post the code but you're suggesting this can't be done in dotnet? x Pin
devvvy10-Aug-10 15:57
devvvy10-Aug-10 15:57 
GeneralRe: thanks yes you understand me - i will post the code but you're suggesting this can't be done in dotnet? x Pin
Covean9-Aug-10 4:19
Covean9-Aug-10 4:19 
GeneralRe: thanks yes you understand me - i will post the code but you're suggesting this can't be done in dotnet? x Pin
devvvy9-Aug-10 17:29
devvvy9-Aug-10 17:29 

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.