Solved

VB.net and SQL Storing Images: Database or Folder

Posted on 2016-10-18
6
39 Views
Last Modified: 2016-10-19
Hi

I have a client that uses a cloud SQL database that I set up for them. They need to store a number of images on a daily basis.
I was thinking of two ways to do this:
1. Insert each image into a varbinary field within  a SQL table
2. Store the images in a folder in their website and then just store a path to this image in a nvarchar field in SQL

Which is better? The second method feels right.
0
Comment
Question by:murbro
  • 3
  • 2
6 Comments
 
LVL 18

Accepted Solution

by:
Pawan Kumar Khowal earned 500 total points
ID: 41849508
2. Store the images in a folder in their website and then just store a path to this image in a NVarchar(255) field in SQL

is the best solution. Don't go with the first one. First one requires huge size and image management is also difficult.
0
 

Author Closing Comment

by:murbro
ID: 41849511
Great. Thanks for validating that
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 41849999
there is another option I really like. it is called FileTable: http://emoreau.com/Entries/Articles/2012/12/Microsoft-SQL-Server-2012-FileTable.aspx
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:murbro
ID: 41850372
Thanks Eric. Sorry I couldn't award points
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 41850380
no problem. it is just another more modern option I wanted to let you know
0
 

Author Comment

by:murbro
ID: 41850466
Appeciated. Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now