Re: Creating a file that can be seen in the browser
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Mon, 26 Dec 2005 01:42:04 GMT
Thanks for your followup Dave,
So when using C#, you can correctly create the temp file in that folder and
also read it later, yes? If so, the NTFS file permission should be ok.
Also, since you're going to read the file, why don't you use the
FileInputStream instead of FileOutputStream?
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: Creating a file that can be seen in the browser
| thread-index: AcYH6bgPMHlxvP/IQnmTHNZzAHo7hw==
| X-WBNR-Posting-Host: 199.45.247.98
| From: "=?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=" <thielen@xxxxxxxxxxxxx>
| References: <FF8E0EB4-A61A-4CAD-A76A-EA525E8E2A87@xxxxxxxxxxxxx>
<eYtfnxaBGHA.1864@xxxxxxxxxxxxxxxxxxxx>
<CBFEA6D6-57D8-4215-A3D9-4F85DFD9A56D@xxxxxxxxxxxxx>
<Fnh7AShBGHA.2560@xxxxxxxxxxxxxxxxxxxxx>
<04FCF1C2-A403-402E-BD9C-7983EFD17FFD@xxxxxxxxxxxxx>
<G83puh6BGHA.1236@xxxxxxxxxxxxxxxxxxxxx>
| Subject: Re: Creating a file that can be seen in the browser
| Date: Fri, 23 Dec 2005 09:53:02 -0800
| Lines: 14
| Message-ID: <C51EEF45-CA78-4DD3-85CF-76D97599F0FA@xxxxxxxxxxxxx>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:366817
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi;
|
| It appears to be a J# issue.
|
| string filename = Request.PhysicalApplicationPath + "images\\tmp_" + fn +
| ".txt";
| FileStream fs = new FileStream(filename, FileMode.Create,
FileAccess.Write,
| FileShare.ReadWrite);
| works.
|
| But using J# new FileOutputStream() for the png fails.
|
| thanks - dave
|
|
.
- Follow-Ups:
- Re: Creating a file that can be seen in the browser
- From: David Thielen
- Re: Creating a file that can be seen in the browser
- References:
- Re: Creating a file that can be seen in the browser
- From: Phillip N Rounds
- Re: Creating a file that can be seen in the browser
- From: Steven Cheng[MSFT]
- Re: Creating a file that can be seen in the browser
- From: David Thielen
- Re: Creating a file that can be seen in the browser
- From: Steven Cheng[MSFT]
- Re: Creating a file that can be seen in the browser
- Prev by Date: Re: named anchor
- Next by Date: Re: Select string building in C# and ASP.NET
- Previous by thread: Re: Creating a file that can be seen in the browser
- Next by thread: Re: Creating a file that can be seen in the browser
- Index(es):
Relevant Pages
|
Loading