Solved

VB.net and SQL Storing Images: Database or Folder

Posted on 2016-10-18
6
64 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 28

Accepted Solution

by:
Pawan Kumar 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 70

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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

Author Comment

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

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

777 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