Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 6th, 2007, 10:22 AM
Authorized User
 
Join Date: Jun 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to preetham.sarojavenkatesh
Default update& retrieval of images from sql server..

can anyone,
        plz forward m code for updating& retrieval of images from sql-server using vb.net...
                 plz its very urgent..
 regards,,,
preetham

preet
__________________
preet
 
Old August 6th, 2007, 12:52 PM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

I haven't worked with this in .NET, only in Dreamweaver using classic ASP, so I'm not sure of the exact syntax mind you. But basically you want to store the images in your image folder like normal. Database calls are one of the slowest things you can make your application do and transmitting an entire file borders on suicidal. If you can avoid storing the actual images on the database your application will run substantially faster, if you can't best of luck to you.

The way you typically eliminate the need to store images, is you create a text field and populate it with the pathname to the image "Images/mypic.jpg" or whatever. Then it's just the paths that are stored as text in the DB and that tells your page where to get the image from.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
 
Old August 6th, 2007, 01:30 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi preet,

Did you search Google or the P2P internal search engine for this? There are many many good resources about this subject.

For an article discussing the different options you have (store files on disk or in a database) and their pro and cons, take a look here: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=414

I have said it before and I'll say it again: adding "it's very urgent" to your messages generally doesn't help. Of course it's urgent, or otherwise you wouldn't be posting it here. However, that doesn't make it urgent for those posting answer. They'll post, if and when they have the time. If it is really so urgent, you should have searched Google yourself which would have gotten you an answer hours ago.... ;)

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old August 6th, 2007, 01:31 PM
Friend of Wrox
 
Join Date: Feb 2006
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403
Default

Look at this thread:

http://p2p.wrox.com/topic.asp?TOPIC_ID=63720
 
Old August 7th, 2007, 10:07 AM
Authorized User
 
Join Date: Jun 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to preetham.sarojavenkatesh
Default

hi imar,
         thanks for the reply-inspite i tried in google,i couldnt get the desired format.even the url provided,is blocked in m office system(http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=414)..
                                plz send m code in vb.net(web-form),vs-2005,without using procedures...
regards,
preetham

preet
 
Old August 7th, 2007, 12:07 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi preet,

Why would your office block my site? Tell your admin that's a mistake ;)

Anyway, I don't go out and "send y code in vb.net" just like that, especially if it's publicly available from my server. Also, since it uses stored procedures by design, you're asking quite something when you say: "plz send m code in vb.net(web-form),vs-2005,without using procedures...". Ask your admin to open up the server for my site, download the code, read the article and diagnose the code and then make it procedure-less yourself.... ;)

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report & VB6 & SQL Server wlho VB How-To 2 June 5th, 2013 01:58 AM
Retrieving Images from SQL Server jazzcatone ASP.NET 1.0 and 1.1 Professional 1 September 19th, 2006 11:33 AM
Inserting & Retrieving Images on Sql Server adamusufi SQL Server 2000 6 June 26th, 2005 03:32 PM
images in sql server rj1406 ASP.NET 1.0 and 1.1 Basics 1 September 28th, 2004 05:50 AM
update table (SQL & DataSet) melvik ADO.NET 1 July 24th, 2003 04:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.