title: I want to save image in database
body: <p>I have an image on a page, e.g <code>&lt;img id="img3" runat="server" src="image.jpg" width="200" height="200"/&gt;</code> and I'd like to save the image referenced by the <code>src</code> attribute in my database using stored procedure.</p>
  
  <p>I should convert the image to binary first.
  Here is what I have so far:</p>
  
  <pre><code>    Stream fs = FileUpload1.PostedFile.InputStream;
  
      BinaryReader br = new BinaryReader(fs);
      Byte[] bytes = br.ReadBytes((Int32)fs.Length);
  
      cmd.Parameters.AddWithValue("@img", byte);
  </code></pre>
  
  <p>But the thing is that I don't want to save the uploaded image <code>FileUpload1.PostedFile.InputStream</code>, I want to save the image that I had its <code>src</code>.</p>
  
  <p>Is there a way to put the image <code>src</code> in stream so that I can save it or what is the right way for doing that?</p>