1 / 21

Saving Files to Database

Saving Files to Database. Sams ASP NET 4 Unleashed. Small Files: FileUploadDatabase.aspx. FileUploadDatabase.aspx: F orm. FileUploadDatabase.aspx: Data Control. FileUploadDatabase.aspx: Data Source. Database Table. Reading the Uploaded Files: FileHandler.ashx.

zinnia
Download Presentation

Saving Files to Database

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Saving Files to Database Sams ASP NET 4 Unleashed

  2. Small Files: FileUploadDatabase.aspx

  3. FileUploadDatabase.aspx: Form

  4. FileUploadDatabase.aspx: Data Control

  5. FileUploadDatabase.aspx: Data Source

  6. Database Table

  7. Reading the Uploaded Files: FileHandler.ashx

  8. Use a generic HTTP Handler file • Connect with

  9. Upload Large Files

  10. Do extra work when uploading large files • Use less memory • Upload in more manageable chunks • Configure: httpRuntimemaxRequestLength and httpRuntimerequestLengthDiskThreshold • maxRequestLength= 4MB • requestLengthDiskThreshold buffer

  11. 10MB limit, buffer of 100KB in Web.config

  12. FileUploadLarge.aspx

  13. FileUploadLarge.aspx: AddFile

  14. FileUploadLarge.aspx: StoreFile

  15. FileUploadLarge.aspx: Form

  16. FileUploadLarge.aspx: Repeater

  17. FileUploadLarge.aspx: Data Source

  18. FileHandlerLarge.ashx

  19. Problem Set 6 • Modify PS45 and add product upload.

More Related