Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Need To Store Image In DataBase
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Need To Store Image In DataBase

 Post Reply Post Reply
Author
yahia View Drop Down
Newbie
Newbie


Joined: 01 January 2011
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote yahia Quote  Post ReplyReply Direct Link To This Post Topic: Need To Store Image In DataBase
    Posted: 01 January 2011 at 4:40pm
hi every one,
need to store image in data base using visual web and sql server 2005
thx alot
Back to Top
TheGnomeAtHome View Drop Down
Newbie
Newbie
Avatar

Joined: 16 February 2011
Location: Blackpool
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote TheGnomeAtHome Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2011 at 8:32am

SQL server now has an image object built in which will allow you to save it in binary using a memorystream.

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2011 at 9:40am
It is always a bad idea to store images in a database for both database size and performance issues.

The standard way to do this type of thing is store the images on disk and then just store the file location in the browser.

If you are worried about security then you can always place the images in a non public folder and then stream the images to the end user using ADO Streaming, again just storing the file location in the actual database.
Back to Top
IanSmithISA View Drop Down
Groupie
Groupie


Joined: 21 October 2010
Location: Worcester
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote IanSmithISA Quote  Post ReplyReply Direct Link To This Post Posted: 21 February 2011 at 1:34pm
Good afternoon
 
Whilst appreciating that the original post was just spam, some people may be interested in FILESTREAMS within SQL Server 2008
 
 
They move the data out of database file(s) into the OS's filing system whilst appearing to keep them in the database.
 
However they are an optional component of SQL Servere 2008 that may not be available.
 
Bye
 
Ian
Why does anyone need more than an 80x25 character only VDU?
Back to Top
jonathan cole View Drop Down
Newbie
Newbie


Joined: 18 February 2011
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote jonathan cole Quote  Post ReplyReply Direct Link To This Post Posted: 04 April 2011 at 11:22am
whats the problem you can do it with SQL Server.



http://www.logicspice.com - E commerce Web Design

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.