Steve Wilkinson

Steve Wilkinson

  • NA
  • 1
  • 2.8k

Uploading a file from a web form and putting into a database field using ODBC

Oct 6 2010 9:24 AM
I've uploaded files using SqlConnection and SqlCommand adding parameters but I need to do it using an odbc connection and I'm really struggling to get this to work.

I've got a nice simple form:

 <form id="frmAddImage" style="margin:12px" runat="server">       
            <asp:FileUpload ID="UploadedFile" runat="server" /><br /><br />           
            <asp:Button ID="btnSubmit" runat="server" Text="Submit" />
    </form>

But my code behind errors and I'm totally baffled.

I'm struggling to find any examples that use an ODBC connection to update an field in an existing row in the database, is it possible and if so, some pointers would be incredibly useful?

Thanks