RE: IO Exception in ASP .NET

From: sara (sara_at_discussions.microsoft.com)
Date: 01/14/05


Date: Fri, 14 Jan 2005 11:41:04 -0800

Hi Silvia
try to upload ur image in the server and save in the db only the filename
when u request it from ur application dowunload it and pass from ur web
application the filename
try this maybe it's work
i try it before

"silvia.rafat@gmail.com" wrote:

> Dear,
> i'm developping a web application that where clients may
> 1- upload images to DB (SQL Server).
> 2- view the image from DB.
>
> i store the images in DB through the data type 'image'
> to upload images i open a file stream (on client machine) and read the
> data from the image file as byte()
>
> the same way i do for viewing the images
>
> i creat a temperory file stream (on server) and read the byte() from db
> so i can give the image web control a path to show the image
> [i failed to find another way :( , or even creat a file on client
> machine ]
>
> the problem i had is the IO Exception access denied in both reading and
> writing the file stream, i even changed the defaul windows
> authentication...
> to forms authentication.. & still give me the same exception althought
> when i traced the User.Identity ..he is login & authenticated
> Pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeas
> help i spend alot of of time and failed to find any solution
> great thanx for any 1 helps me
>
>



Relevant Pages

  • Upload a file on server
    ... I have to upload a file on to a server.I have tried it. ... In my form of an HTML page, if i have a input file type (file browse ... $fileName = check_existence; ... # create a new file on the server using the formatted (new instance ...
    (comp.lang.perl.misc)
  • Re: MS Word properties manipulation
    ... On the server, you could probably update the latest name as one of the ... When the document opens, the footer ... could reference that text as the filename. ... > information they provide when they upload. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: File Not Released After Thumbnail Created
    ... Get the file using a file stream and use ... > that creates a thumbnail image from the original. ... If I upload multiple ... > int dotPlace = strFilename.LastIndexOf; ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: FileUpload - keep the filename
    ... The problem we have is users click that button, see the filename disappear, ... in which the file stream is uploaded. ... exists in the postback of the uploading post, after that, no filestream ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • RE: FileUpload - keep the filename
    ... As for the fileupload control, it won't persist the filename after the post ... in which the file stream is uploaded. ... exists in the postback of the uploading post, after that, no filestream ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)