0
Answer

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

Steve Wilkinson

Steve Wilkinson

14y
2.6k
1
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