How do I insert the file into database asynchronously while uploading a large file?

Last post 05-25-2009, 10:31 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  05-24-2009, 9:53 PM 52447

    How do I insert the file into database asynchronously while uploading a large file?

    Here is my situation, I am using Ajax Uploader to allow users uploading file to and downloading file from database. You see I am using database image to store the files instead of file location.
     
    Every time a user uploading a large file, Ajax Uploader put that file in the temporary folder. Now I can only insert the file into database after the large file is completely uploaded to the temporary folder.
     
    Here is my problem, it takes time to insert the large file into database which has impact on the usability of my program. Can I start my inserting before the file uploading is completed?
  •  05-25-2009, 10:31 AM 52480 in reply to 52447

    Re: How do I insert the file into database asynchronously while uploading a large file?

    Hi,
     
    The best way is use args.MoveTo() method to move the file to another folder,
     
    and then use the background thread or another application to process it.
     
    Regards,
    Terry
     
View as RSS news feed in XML