C# - Get Image path from Client Machine
<p>I want to get the path of the Image which is saved in Client Machine. I know the Path and the file name of the Image. By using FileUpload i can do it, but without using fileupload is it possible to get the path of the file ??.</p>

<p>My Scenario is given below,</p>

<pre><code>Public void ConverttoByte()
{
    //Get the image path from web.config &amp; this image is in client machine
    string strConfig = @"C:\Manikandan\image\image1.jpg"; 
    MemoryStream MS = new MemoryStream();
    Byte[] data;
    int fiFileSize;
    System.Drawing.Image image;
    image = System.Drawing.Image.FromFile(strConfig);
    image.Save(MS, System.Drawing.Imaging.ImageFormat.Gif);
    data = MS.ToArray();
    CallDBMethod(data);
}
</code></pre>

<p>Here I converted the image as <em>Byte</em> and I called the <strong>CallDBMethod</strong> to insert this byte details to DB..</p>

<p>This image is available in client machine, but not in server machine..</p>

<p>So, how to i get this image path from client machine &amp; how can i solve this?</p>
