Image upload from Client to server

  • 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.

  • 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[/url] 😉

  • 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. )

  • 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[/url] 😉

  • 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.

  • 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" 😉

  • 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[/url] 😉

  • i m agree this one. after following these steps i can say this.

    thanks

    packersm[/url]

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply