Click here to Skip to main content
16,006,709 members
Home / Discussions / C#
   

C#

 
Generalres://ieframe.dll/navcancl.htm#http://localhost:2441/ErrorPage.aspx?ErrorId= Pin
Alagiri.periyasamy@merrillcorp.com8-Aug-12 21:13
Alagiri.periyasamy@merrillcorp.com8-Aug-12 21:13 
GeneralRe: res://ieframe.dll/navcancl.htm#http://localhost:2441/ErrorPage.aspx?ErrorId= Pin
Pete O'Hanlon8-Aug-12 23:09
mvePete O'Hanlon8-Aug-12 23:09 
GeneralRe: res://ieframe.dll/navcancl.htm#http://localhost:2441/ErrorPage.aspx?ErrorId= Pin
Alagiri.periyasamy@merrillcorp.com8-Aug-12 23:23
Alagiri.periyasamy@merrillcorp.com8-Aug-12 23:23 
GeneralRe: res://ieframe.dll/navcancl.htm#http://localhost:2441/ErrorPage.aspx?ErrorId= Pin
Pete O'Hanlon8-Aug-12 23:31
mvePete O'Hanlon8-Aug-12 23:31 
GeneralConvert Word Doc to Byte Pin
ASPnoob8-Aug-12 19:46
ASPnoob8-Aug-12 19:46 
GeneralRe: Convert Word Doc to Byte Pin
Pete O'Hanlon8-Aug-12 20:16
mvePete O'Hanlon8-Aug-12 20:16 
GeneralRe: Convert Word Doc to Byte Pin
ASPnoob8-Aug-12 21:18
ASPnoob8-Aug-12 21:18 
GeneralRe: Convert Word Doc to Byte Pin
Pete O'Hanlon8-Aug-12 22:40
mvePete O'Hanlon8-Aug-12 22:40 
Fair enough, but in future, please try to give us the real code, rather than having us waste your time correcting a problem that doesn't exist.

If all you are trying to do is pass the MemoryStream instead of the byte[], then just change the parameter, and work with that. But, as you are reading from disk into a byte array, this is a pretty useless conversion step. If, however, you are trying to avoid the creation of the file, and you already have a populated MemoryStream, then you need to create a byte array and populate it from the MemoryStream like this:
C#
byte[] data = new byte[ms.Length];
ms.Read(data, 0, ms.Length);

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: Convert Word Doc to Byte Pin
ASPnoob9-Aug-12 0:45
ASPnoob9-Aug-12 0:45 
GeneralRe: Convert Word Doc to Byte Pin
Pete O'Hanlon9-Aug-12 0:52
mvePete O'Hanlon9-Aug-12 0:52 
GeneralRe: Convert Word Doc to Byte Pin
lmoelleb9-Aug-12 5:27
lmoelleb9-Aug-12 5:27 
GeneralRe: Convert Word Doc to Byte Pin
Pete O'Hanlon9-Aug-12 5:36
mvePete O'Hanlon9-Aug-12 5:36 
Questionimage recognition through google image search Pin
Mohsin Mushtaq8-Aug-12 4:03
Mohsin Mushtaq8-Aug-12 4:03 
AnswerRe: image recognition through google image search Pin
Shameel8-Aug-12 4:19
professionalShameel8-Aug-12 4:19 
GeneralRe: image recognition through google image search Pin
Mohsin Mushtaq8-Aug-12 4:30
Mohsin Mushtaq8-Aug-12 4:30 
GeneralRe: image recognition through google image search Pin
lewax008-Aug-12 5:11
lewax008-Aug-12 5:11 
GeneralRe: image recognition through google image search Pin
Mohsin Mushtaq9-Aug-12 9:15
Mohsin Mushtaq9-Aug-12 9:15 
QuestionHow to enable gestures in windows 8 touch ultrabook Pin
ashishguptajhansi8-Aug-12 2:28
ashishguptajhansi8-Aug-12 2:28 
AnswerRe: How to enable gestures in windows 8 touch ultrabook Pin
Richard MacCutchan8-Aug-12 4:05
mveRichard MacCutchan8-Aug-12 4:05 
AnswerRe: How to enable gestures in windows 8 touch ultrabook Pin
BillWoodruff9-Aug-12 8:09
professionalBillWoodruff9-Aug-12 8:09 
QuestionNeed to improve oops concepts Pin
Alagiri.periyasamy@merrillcorp.com8-Aug-12 1:10
Alagiri.periyasamy@merrillcorp.com8-Aug-12 1:10 
AnswerRe: Need to improve oops concepts Pin
Pete O'Hanlon8-Aug-12 1:22
mvePete O'Hanlon8-Aug-12 1:22 
AnswerRe: Need to improve oops concepts Pin
Alan Balkany8-Aug-12 4:31
Alan Balkany8-Aug-12 4:31 
AnswerRe: Need to improve oops concepts Pin
wizardzz8-Aug-12 5:29
wizardzz8-Aug-12 5:29 
QuestionList all the open ports Pin
sarang_k7-Aug-12 20:41
sarang_k7-Aug-12 20:41 

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.