Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 - General
»
Image upload from Client to server
Image upload from Client to server
Rate Topic
Display Mode
Topic Options
Author
Message
devanandiiway
devanandiiway
Posted Monday, June 11, 2012 10:36 PM
Valued Member
Group: General Forum Members
Last Login: Yesterday @ 1:40 AM
Points: 54,
Visits: 252
Hi all,
Can we upload a image from client location to server using sql script.
I can access the server db from my local machine. I have images that are repeatedly changing I need to build those in server .I don't want to have a separate page for uploading.
Can anyone suggest me the path.
Regards,
Devanand.
Post #1314189
vinu512
vinu512
Posted Tuesday, June 12, 2012 12:49 AM
Ten Centuries
Group: General Forum Members
Last Login: Yesterday @ 3:06 AM
Points: 1,051,
Visits: 1,442
And where is the Image going to be displayed??.....Don't you need a page for that??...
Vinu Vijayan
For better and faster solutions please check...
"How to post data/code on a forum to get the best help" - Jeff Moden
Post #1314221
devanandiiway
devanandiiway
Posted Tuesday, June 12, 2012 2:42 AM
Valued Member
Group: General Forum Members
Last Login: Yesterday @ 1:40 AM
Points: 54,
Visits: 252
Hi Vinu,
I have a page... to display those images one by one as a slide. I need to change the image on daily basis so i just want to upload those images from sql script.
Thus I will write a code in .net to retrieve the image from the db.(The main thing no need to build the website for changing the image alone. )
Post #1314280
vinu512
vinu512
Posted Tuesday, June 12, 2012 3:03 AM
Ten Centuries
Group: General Forum Members
Last Login: Yesterday @ 3:06 AM
Points: 1,051,
Visits: 1,442
I am guessing that you have already got the images or the path to the images stored in your Database.
In what form do you store them in your Database....as a "/" Delimited String(path) or a BLOB image?
Vinu Vijayan
For better and faster solutions please check...
"How to post data/code on a forum to get the best help" - Jeff Moden
Post #1314287
devanandiiway
devanandiiway
Posted Tuesday, June 12, 2012 4:22 AM
Valued Member
Group: General Forum Members
Last Login: Yesterday @ 1:40 AM
Points: 54,
Visits: 252
No..now I am not saving in db
What i am doing now is , on daily basis I will copy the image file into the folder(server) and displaying in a page.
For this I am doing build everyday (pasting the image file alone).
What I am looking is, want to have those files in db as varbinary or image datatype so that I can get it using .net.
For the above I just want to run a script which should save the images in db.
Post #1314323
Perry Whittle
Perry Whittle
Posted Tuesday, June 12, 2012 4:30 AM
SSCertifiable
Group: General Forum Members
Last Login: Yesterday @ 8:44 AM
Points: 5,204,
Visits: 11,165
the same .NET code has methods for reading and writing images as LOBs into the database
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
Post #1314326
vinu512
vinu512
Posted Tuesday, June 12, 2012 4:45 AM
Ten Centuries
Group: General Forum Members
Last Login: Yesterday @ 3:06 AM
Points: 1,051,
Visits: 1,442
Go through the following Links. These would give you the necessary information about how to do it:
Storing and Retrieving Images from SQL Server Using Strored Procedures
How to insert\retrieve image in SQL Server database
Storing and Retrieving Images from SQL Server using Microsoft .NET
Vinu Vijayan
For better and faster solutions please check...
"How to post data/code on a forum to get the best help" - Jeff Moden
Post #1314333
wl.abhishek
wl.abhishek
Posted Wednesday, October 17, 2012 3:36 AM
Forum Newbie
Group: General Forum Members
Last Login: Wednesday, October 17, 2012 3:35 AM
Points: 1,
Visits: 1
i m agree this one. after following these steps i can say this.
thanks
packersm
Post #1373703
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.