Need help with insert Image/doc into database with formview

Last post 11-09-2009 11:36 AM by bigmac15. 3 replies.

Sort Posts:

  • Need help with insert Image/doc into database with formview

    11-08-2009, 10:33 PM
    • Member
      point Member
    • bigmac15
    • Member since 11-08-2009, 10:25 PM
    • Posts 12

    This is the table im using:

    create table Material(
        p_user_id    varchar(50),
        sb_code        varchar(8),
        file_type varchar(20) not null,
        material_name varchar(50) not null,
        material varbinary(MAX) not null,
        date_time datetime default null,
        constraint pk_Prof_subj_INT
        primary key (p_user_id, sb_code),
        foreign key(p_user_id) references Professors(p_user_id),
        foreign key(sb_code) references Subjects(sb_code));

    The column material is where the image/doc will be stored.  But i dont know where to start.  I added a formview to the page and used a file upload object to get the file but i dont know what else to do.  My professor says not to use ADO.NET and only data access layer.

    No looking for someone to code...just an idea of how to start


  • Re: Need help with insert Image/doc into database with formview

    11-09-2009, 1:19 AM
    Answer
    • All-Star
      59,893 point All-Star
    • mudassarkhan
    • Member since 02-28-2008, 5:28 AM
    • Mumbai, India
    • Posts 10,551
    • TrustedFriends-MVPs
  • Re: Need help with insert Image/doc into database with formview

    11-09-2009, 10:30 AM
    • Member
      point Member
    • bigmac15
    • Member since 11-08-2009, 10:25 PM
    • Posts 12

    Thanks man


  • Re: Need help with insert Image/doc into database with formview

    11-09-2009, 11:36 AM
    • Member
      point Member
    • bigmac15
    • Member since 11-08-2009, 10:25 PM
    • Posts 12

    disregard this


Page 1 of 1 (4 items)