June 11, 2012 at 10:36 pm
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.
June 12, 2012 at 12:49 am
June 12, 2012 at 2:42 am
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. )
June 12, 2012 at 3:03 am
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?
June 12, 2012 at 4:22 am
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.
June 12, 2012 at 4:30 am
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" 😉
June 12, 2012 at 4:45 am
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
October 17, 2012 at 3:36 am
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply