Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I really worry about storing Image because it could be affect and make my system slow if I store it in database but if I store it in machine folder.It can not use across network.I'm really dizzy about this problem.could anyone tell me about the best for storing image?

waiting to here from you soon....

thank in advanced.
Posted

1 solution

For Window application..<br />
1>Does this images change often? Then go for directory based approcach, where store it in a directory and load it up. May be you can have an xml having the names of these files to load. So name change in the files (images), just change xml.<br />
<br />
2>These files never changes? Then just embed those as a resources, such a way it will be embedded into your exe/dll and none can corrupt the images.<br />


For Web Applucation.
set the ref.

http://stackoverflow.com/questions/4535627/where-is-the-best-place-to-save-images-from-users-upload[^]
http://www.dofactory.com/topic/1379/best-practice-store-images-in-db-or-on-file-system.aspx[^]
http://stackoverflow.com/questions/1078535/how-do-you-store-images-for-asp-net-application[^]
 
Share this answer
 
v2
Comments
kornkimhour 5-Feb-15 1:46am    
thank for your solution, but I want to find the solution for C# desktop not asp.net so can you give me more idea about that? thank for help...
/\jmot 5-Feb-15 1:52am    
Answer updated. see now.
kornkimhour 5-Feb-15 2:31am    
yes I see Answer updated.It really good to store it in directory,but it will have problem with client server.I have one server for storing image and allow many client can be access.client can access at the same time or can be different time.what should I do for this?

waiting to see your reply

thank so much friend....
/\jmot 5-Feb-15 2:43am    
if client gonna access then use Directory based approach.
i think it'll be a better approach.
kornkimhour 5-Feb-15 2:58am    
thank for help I will try to work with directory based approach...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900