Click here to Skip to main content
15,920,217 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Text box Pin
Christian Graus24-Jul-07 22:08
protectorChristian Graus24-Jul-07 22:08 
GeneralRe: Text box Pin
Arindam Tewary24-Jul-07 22:17
professionalArindam Tewary24-Jul-07 22:17 
GeneralRe: Text box Pin
Arindam Tewary24-Jul-07 22:15
professionalArindam Tewary24-Jul-07 22:15 
GeneralRe: Text box Pin
tisaracorner24-Jul-07 22:19
tisaracorner24-Jul-07 22:19 
GeneralRe: Text box Pin
Arindam Tewary24-Jul-07 22:25
professionalArindam Tewary24-Jul-07 22:25 
GeneralRe: Text box Pin
tisaracorner24-Jul-07 22:31
tisaracorner24-Jul-07 22:31 
GeneralRe: Text box Pin
Arindam Tewary24-Jul-07 22:46
professionalArindam Tewary24-Jul-07 22:46 
QuestionError accessing file with white spaces: FileStream object Pin
Ranjit082924-Jul-07 19:33
professionalRanjit082924-Jul-07 19:33 
Hello Smile | :) ,

I have a issue with FileStream object, where I pass the value to get the data in binary formart.
code:
FileStream fileStream = new FileStream(filePath, FileMode.Open,<br />
                                                             FileAccess.Read,FileShare.None);<br />
                long length = fileStream.Length;<br />
                Byte[] bytesResume = new Byte[length];<br />
                fileStream.GetAccessControl();<br />
                fileStream.Read(bytesResume, 0, bytesResume.Length);<br />
                MemoryStream memoryStream = new MemoryStream(bytesResume);<br />
                applicant.ResumeFilePath = filePath;<br />
                applicant.ResumeStream = memoryStream;


Above code worked good if the file does not have white spaces in it say "C:\nodata.doc"
But when I try "C:\Documents and Settings\ranjit.vaity\My Documents\noData.doc" it gives up an following error
"Access to the path <path> is denied.
Please suggest/help me on this.

Thank you in Advance
Cheers



Regards,
Ranjit Vaity

AnswerRe: Error accessing file with white spaces: FileStream object Pin
Guffa24-Jul-07 22:10
Guffa24-Jul-07 22:10 
AnswerRe: Error accessing file with white spaces: FileStream object Pin
Ranjit082924-Jul-07 22:40
professionalRanjit082924-Jul-07 22:40 
QuestionDoc to Pdf converter Pin
gauthee24-Jul-07 19:31
gauthee24-Jul-07 19:31 
AnswerRe: Doc to Pdf converter Pin
Christian Graus24-Jul-07 19:53
protectorChristian Graus24-Jul-07 19:53 
GeneralRe: Doc to Pdf converter Pin
gauthee24-Jul-07 20:06
gauthee24-Jul-07 20:06 
GeneralRe: Doc to Pdf converter Pin
Christian Graus24-Jul-07 20:08
protectorChristian Graus24-Jul-07 20:08 
GeneralRe: Doc to Pdf converter Pin
gauthee24-Jul-07 20:19
gauthee24-Jul-07 20:19 
QuestionGridView C# Pin
Civic0624-Jul-07 19:03
Civic0624-Jul-07 19:03 
GeneralRe: GridView C# Pin
BasharatAli24-Jul-07 19:15
BasharatAli24-Jul-07 19:15 
GeneralRe: GridView C# Pin
Civic0625-Jul-07 2:03
Civic0625-Jul-07 2:03 
QuestionStore Data Into Binary File Pin
nannapanenikamalnath24-Jul-07 19:01
nannapanenikamalnath24-Jul-07 19:01 
AnswerRe: Store Data Into Binary File Pin
Christian Graus24-Jul-07 19:18
protectorChristian Graus24-Jul-07 19:18 
GeneralRe: Store Data Into Binary File Pin
nannapanenikamalnath24-Jul-07 21:19
nannapanenikamalnath24-Jul-07 21:19 
Questionfile download dialog Pin
248912824-Jul-07 18:31
248912824-Jul-07 18:31 
AnswerRe: file download dialog Pin
Christian Graus24-Jul-07 19:18
protectorChristian Graus24-Jul-07 19:18 
AnswerRe: file download dialog Pin
Guffa24-Jul-07 20:05
Guffa24-Jul-07 20:05 
QuestionError Sending Email Pin
Socheat.Net24-Jul-07 16:37
Socheat.Net24-Jul-07 16:37 

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.