Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Image upload from Client to server Expand / Collapse
Author
Message
Posted Monday, June 11, 2012 10:36 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, June 10, 2013 3:10 AM
Points: 54, Visits: 255
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
Posted Tuesday, June 12, 2012 12:49 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 12:58 AM
Points: 1,127, Visits: 1,598
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
Posted Tuesday, June 12, 2012 2:42 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, June 10, 2013 3:10 AM
Points: 54, Visits: 255
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
Posted Tuesday, June 12, 2012 3:03 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 12:58 AM
Points: 1,127, Visits: 1,598
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
Posted Tuesday, June 12, 2012 4:22 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, June 10, 2013 3:10 AM
Points: 54, Visits: 255
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
Posted Tuesday, June 12, 2012 4:30 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 9:56 AM
Points: 6,482, Visits: 13,945
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
Posted Tuesday, June 12, 2012 4:45 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 12:58 AM
Points: 1,127, Visits: 1,598
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
Posted Wednesday, October 17, 2012 3:36 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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 »

Add to briefcase

Permissions Expand / Collapse