Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: How to store picture (*.jpg, *.bmp, *.gif) into sql database ?

Reply
Thread Tools

Re: How to store picture (*.jpg, *.bmp, *.gif) into sql database ?

 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      07-27-2004
use the Image datatype, BUT... if you can, try just storing them on the
FileSystem and storing a path/name in the DB. Better/easier to deal with.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


"Daniel" <> wrote in message
news:4A4D189A-BE45-4AA8-BB5A-...
> Does anyone know how to solve the above solution using ASP.net language.
>
> Thanks in advance.



 
Reply With Quote
 
 
 
 
Tampa .NET Koder
Guest
Posts: n/a
 
      07-27-2004
I always wondered about this. I have tried storeing images in a database
and I think is kool since the data can be managed a whole lot easier.
Storeing the path in the DB is ok but you have to manage the data in the DB
and on the filesystem. Does anyone else have an opinion on this?

Tampa .NET Koder



"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:e%...
> use the Image datatype, BUT... if you can, try just storing them on the
> FileSystem and storing a path/name in the DB. Better/easier to deal with.
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "Daniel" <> wrote in message
> news:4A4D189A-BE45-4AA8-BB5A-...
> > Does anyone know how to solve the above solution using ASP.net language.
> >
> > Thanks in advance.

>
>



 
Reply With Quote
 
 
 
 
Shan Plourde
Guest
Posts: n/a
 
      07-27-2004
I'm for storing files on the file system. Some of my cons are below.
There are many others and pros for doing what you're doing, and these
items could be argued, but these are my 2 cents on why I would not store
files in a database. Others would definitely have different opinions,
I'm not sure what people with clustered .NET servers would recommend for
example. Perhaps their arguments would weigh in favour of what you're
doing. My perspective is from the simple .NET server and DB server
architecture.

1. No need for large files to be processed through .NET process space.
If you store files in your database, the files must be streamed through
the .NET framework before being returned to clients - definitely unnecessary
2. More network bandwidth consumed between your .NET application server
and DB server if they are separate machines; greater network scalability
3. Limited indexing for searching purposes versus externalized files
with external file indexing / searching tools
4. No capability to manually examine a file without programmatically
retrieving the file from the database first - can be an inconvenience
when it is necessary to do so, perhaps for support and maintenance or
debugging purposes
5. More database expertise required to effectively partition database to
support files versus simply storing on filesystem - perhaps could impact
performance of your database if not done well

Shan

Tampa .NET Koder wrote:

>I always wondered about this. I have tried storeing images in a database
>and I think is kool since the data can be managed a whole lot easier.
>Storeing the path in the DB is ok but you have to manage the data in the DB
>and on the filesystem. Does anyone else have an opinion on this?
>
>Tampa .NET Koder
>
>
>
>"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
>news:e%...
>
>
>>use the Image datatype, BUT... if you can, try just storing them on the
>>FileSystem and storing a path/name in the DB. Better/easier to deal with.
>>
>>--
>>Curt Christianson
>>Owner/Lead Developer, DF-Software
>>Site: http://www.Darkfalz.com
>>Blog: http://blog.Darkfalz.com
>>
>>
>>"Daniel" <> wrote in message
>>news:4A4D189A-BE45-4AA8-BB5A-...
>>
>>
>>>Does anyone know how to solve the above solution using ASP.net language.
>>>
>>>Thanks in advance.
>>>
>>>

>>
>>

>
>
>
>


 
Reply With Quote
 
jharr100 jharr100 is offline
Junior Member
Join Date: Aug 2009
Posts: 1
 
      08-14-2009
I am using visual studio 2008 to create a data source and I am adding the tables by using the design part - not actually writing out sql statements in visual studio. I am using C# to write the code for a mobile device app. When I add a column named Image of Image type or varbinary type - I do not know how to add the image to the database. Do I use the image file name or what do I use???
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
most seamless way to store a C# enum value in a SQL Server database? Bennett Haselton ASP .Net 1 10-14-2004 04:06 PM
Re: How to store picture (*.jpg, *.bmp, *.gif) into sql database ? Tampa .NET Koder ASP .Net 0 07-27-2004 03:54 AM
Tools to extract data from SQL database and convert it into XML & insert XML data into SQL databases Harry Zoroc XML 1 07-12-2004 10:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57