Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: Monitor internet usage Pin
electriac19-Sep-08 9:55
electriac19-Sep-08 9:55 
GeneralRe: Monitor internet usage Pin
jzonthemtn19-Sep-08 11:44
jzonthemtn19-Sep-08 11:44 
QuestionGetting images from an RTF file Pin
sarabjs19-Sep-08 3:29
sarabjs19-Sep-08 3:29 
AnswerRe: Getting images from an RTF file Pin
Giorgi Dalakishvili19-Sep-08 3:44
mentorGiorgi Dalakishvili19-Sep-08 3:44 
GeneralRe: Getting images from an RTF file Pin
sarabjs19-Sep-08 3:50
sarabjs19-Sep-08 3:50 
AnswerRe: Getting images from an RTF file Pin
DaveyM6919-Sep-08 4:33
professionalDaveyM6919-Sep-08 4:33 
AnswerRe: Getting images from an RTF file Pin
Mohammad Dayyan19-Sep-08 4:38
Mohammad Dayyan19-Sep-08 4:38 
AnswerRe: Getting images from an RTF file Pin
sarabjs21-Sep-08 20:07
sarabjs21-Sep-08 20:07 
Hi,

Thanks to everyone for your ideas! I managed to get the images. Here's how:

Images in RTF are as hexadecimal strings (as noted from the specifications). So all that needed to be done was:

1. Convert the hexadecimal to a byte array:

http://www.koders.com/csharp/fid8BD422682325288B294A97714AC061D115F0307D.aspx[^])

2. Then make an image out of this array:

byte[] bData; // The byte array
MemoryStream memStream = new MemoryStream(bData, 0, bData.Length);
Image iMage = Image.FromStream(memStream);

Et voila!

Sarab
QuestionHow can I prevent closing WinApp even with Windows Task Manager ? Pin
Mohammad Dayyan19-Sep-08 2:35
Mohammad Dayyan19-Sep-08 2:35 
AnswerRe: How can I prevent closing WinApp even with Windows Task Manager ? Pin
Simon P Stevens19-Sep-08 2:47
Simon P Stevens19-Sep-08 2:47 
AnswerRe: How can I prevent closing WinApp even with Windows Task Manager ? Pin
J4amieC19-Sep-08 2:50
J4amieC19-Sep-08 2:50 
GeneralRe: How can I prevent closing WinApp even with Windows Task Manager ? Pin
Mohammad Dayyan19-Sep-08 2:52
Mohammad Dayyan19-Sep-08 2:52 
General[Message Deleted] Pin
J4amieC19-Sep-08 3:03
J4amieC19-Sep-08 3:03 
GeneralRe: How can I prevent closing WinApp even with Windows Task Manager ? Pin
Mohammad Dayyan19-Sep-08 3:08
Mohammad Dayyan19-Sep-08 3:08 
RantRe: How can I prevent closing WinApp even with Windows Task Manager ? Pin
Dan Neely19-Sep-08 3:46
Dan Neely19-Sep-08 3:46 
GeneralRe: How can I prevent closing WinApp even with Windows Task Manager ? Pin
Colin Angus Mackay19-Sep-08 5:13
Colin Angus Mackay19-Sep-08 5:13 
AnswerRe: How can I prevent closing WinApp even with Windows Task Manager ? Pin
Harvey Saayman19-Sep-08 4:20
Harvey Saayman19-Sep-08 4:20 
AnswerRe: How can I prevent closing WinApp even with Windows Task Manager ? Pin
jzonthemtn19-Sep-08 8:02
jzonthemtn19-Sep-08 8:02 
GeneralRe: How can I prevent closing WinApp even with Windows Task Manager ? Pin
Scott Dorman19-Sep-08 10:33
professionalScott Dorman19-Sep-08 10:33 
GeneralRe: How can I prevent closing WinApp even with Windows Task Manager ? Pin
jzonthemtn19-Sep-08 11:42
jzonthemtn19-Sep-08 11:42 
AnswerRe: How can I prevent closing WinApp even with Windows Task Manager ? Pin
Scott Dorman19-Sep-08 10:34
professionalScott Dorman19-Sep-08 10:34 
QuestionInvoke windows form Pin
Ethen19-Sep-08 2:07
Ethen19-Sep-08 2:07 
AnswerRe: Invoke windows form Pin
Giorgi Dalakishvili19-Sep-08 2:33
mentorGiorgi Dalakishvili19-Sep-08 2:33 
GeneralRe: Invoke windows form Pin
Ethen23-Sep-08 21:22
Ethen23-Sep-08 21:22 
GeneralRe: Invoke windows form Pin
Giorgi Dalakishvili23-Sep-08 21:26
mentorGiorgi Dalakishvili23-Sep-08 21:26 

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.