Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-25-2006, 06:53 PM   #1 (permalink)
Foolygoofy26
Registered User
 
Join Date: Jan 2006
Posts: 3
Foolygoofy26 is on a distinguished road
Uploading image to MDF

I'm trying to make a form or perhaps simply use Web Developer 2005 or SQL Server 2005 management to populate a database with pictures. So simply I want upload images to an sql database, if I make a form I would like to use asp.net.

Option 1
If I make the form using asp.net, i have no idea what to use to put them in that db. I have use db before with access to put text in the db, that's it.

Option 2
In Web Developer and SQL server I can run a query to pass the data into the db, but I don't know how to write sql besides the basic select, update, delete and insert into with basics one word string.

Can anybody give me a clue, link or code to do this...thanks
Foolygoofy26 is offline   Reply With Quote
Old 03-22-2006, 07:26 PM   #2 (permalink)
rdove
Masked Moderator
 
rdove's Avatar
 
Join Date: May 2002
Location: Indianapolis, IN
Posts: 260
rdove is on a distinguished road
I recommend you never store images in a SQL Server database, or any databse for that matter. I think you will find it to be more trouble than it is worth.

My recommendation would be to store the path to the image as a string in the database and use simple uploading to store the image on the server so you can access it later.

Uploading files:
http://www.aspheute.com/english/20000802.asp

But if you must head down this road, this should assist you (he will try to convince you otherwise as well, but he still does show you how to do it):
http://www.sqlteam.com/item.asp?ItemID=986
__________________
~Ryan

rdove is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
switch a .gif image in asp.net datagrid rikb53 MS Technologies ( ASP, VB, C#, .NET ) 0 02-17-2006 12:39 PM
Stationary Image joehouse HTML, XML, Javascript, AJAX 4 08-05-2005 07:03 PM
When Uploading an image .. Can you rename with a space? sde PHP 6 08-11-2003 09:02 PM
I am a newb, how do you set multiple parts of an image as a link? I sniper baby HTML, XML, Javascript, AJAX 5 02-10-2003 06:40 PM


All times are GMT -8. The time now is 05:54 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting