Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Image storage strategies...
Previous Previous
 
Next Next
New Post 4/22/2008 6:43 AM
User is offline Edtoshred
3 posts
10th Ranked


Image storage strategies... 

I'm somewhat new to DNN. I'm working on a module that will look something like a myspace profile.  To do this I'll need to have a profile image. What are the image storage strategies in DNN? I've seen some posts/articles that advocate putting the images in the Database. That sounds insane to me for any number of reasons.

Are there any established ideas in place for storing images to a folder and handling renaming/indexing? I figure someone's already thought this through.

Any ideas / suggestions would be welcome.

ED

 
New Post 4/22/2008 8:06 AM
User is offline Sebastian Leupold
15160 posts
www.deutschnetnuke.de
1st Ranked












Re: Image storage strategies... 

nearly all modules store the images in the file system due to performance and database costs. There are methods for upload and renaming included in the FilesysteUtility class.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 4/22/2008 4:27 PM
User is offline Edtoshred
3 posts
10th Ranked


Re: Image storage strategies... 

Thank you Sebastion. I'll take a look at that.

Does anyone know of any articles/posts that discuss strategies concerning this topic. Up to this point I've had a heck of a time interfacing with the documentation for DNN... Not that I'm disparaging the project. But, much of the documentation seems to reference older versions and it isn't always clear enough for this simplton to understand.

Any insights would be greatly appreciated,

ED

 
New Post 4/22/2008 5:20 PM
User is offline William Severance
842 posts
www.wesnetdesigns.com
7th Ranked






Re: Image storage strategies... 

I would agree that storage of images as blob data in the database is insane for both storage space requirements and performance. You'll find that most if not all modules simply store either a folder/filename or fileid in the database and the actual image file in the file system. Beyond that, there are a wide variety of approaches to renaming/resizing/auto-thumbnailing files on upload, controlling upload folders and upload rights, and keeping the database reference insync with the actual image files.

You might like to take a look at my Image Editor Control found in the DNN Forge/CodePlex. Although the module itself could be used for image upload and display, it was built primarily to demonstrate the underlying server control and its many option settings. If you are looking to create your own image handling and storage routines, you will find the source code of interest as it includes methods for image file upload and processing using GDI+, dynamic image preview using a generic HttpHandler, image resize and thumbnailing, generation of unique image file names, storage and retrieval to and from secure database storage, Octree palette optimization for gif image formats, and client-side javascript/MS AJAX drag-handle specification of the cropping rectangle.


Bill, WESNet Designs
 
New Post 4/24/2008 12:28 PM
User is offline Michael Sumerano
59 posts
10th Ranked


Re: Image storage strategies... 

 William Severance wrote

I would agree that storage of images as blob data in the database is insane for both storage space requirements and performance. You'll find that most if not all modules simply store either a folder/filename or fileid in the database and the actual image file in the file system. Beyond that, there are a wide variety of approaches to renaming/resizing/auto-thumbnailing files on upload, controlling upload folders and upload rights, and keeping the database reference insync with the actual image files.

Saying that it's insane is a bit misleading.  If you are doing it, but not caching the files you need to retrieve regularly, then that's insane.  For those of us who feel storing anything site specific in the actual file system is invalid for disaster recovery reasons, database storage is the logical answer.  I can't stand it that I have to back up both the database and some parts of the DNN installation folder on the server.  It's messy and requires 2 different procedures to make sure you get everything.  I should be able to throw a copy of DNN somewhere, restore the database, and we're back.  Mind you, we are a bit unique I think in the DNN world as we use continuous integration to actually do our production deployments for us, so it does pose some difficulty.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Image storage strategies...
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


$7.16/mo - Powerful DotNetNuke / DNN Hosting
Powerful DotNetNuke / DNN Hosting on Windows 2008 and 2003 servers, starting at under $8/mo with FREE SQL 2008 on certain plans and FREE SQL 2005 on all plans with FREE Installation and expert support.
www.re-invent.com
ASP.NET Web Hosting for $3.95
3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
www.dailyrazor.com
Cestus Websites
DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
www.dotnetnuke-websites.nl

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP