Ajax Uploader in Database

Last post 11-20-2008, 2:18 AM by Thomas Kaczmarek. 2 replies.
Sort Posts: Previous Next
  •  11-19-2008, 3:38 AM 45933

    Ajax Uploader in Database

    Hi together,
    I'm testing Ajax Uploader and it's getting near to our requirements.
    Now my question: Is it possible to write the Uploaded files into a sql server database?
    Is it similar to the normal WebControl in VisualStudio 2005?
     
    Thanks for your efforts
    Thomas
  •  11-19-2008, 9:55 AM 45944 in reply to 45933

    Re: Ajax Uploader in Database

    Hi,
     
    You can read the binary data by open the stream:
     
    void Uploader1_FileUploaded(object sender,UploaderEventArgs args)
    {
       using(Stream stream=args.OpenStream())
       {
          //read the stream into byte[], and then save to database
       }
    }
     
    Regards,
    Terry
     
     
  •  11-20-2008, 2:18 AM 45983 in reply to 45944

    Re: Ajax Uploader in Database

    Hi Terry,
    thanks for your answer.
    I'll test it and will give you a reply.
     
    Regards
    Thomas
View as RSS news feed in XML