INSERT RECORD with PDF WOED files

Last post 03-02-2007 4:26 AM by thirdeyed. 2 replies.

Sort Posts:

  • INSERT RECORD with PDF WOED files

    02-27-2007, 10:18 AM
    • Loading...
    • thirdeyed
    • Joined on 02-26-2007, 9:25 AM
    • Posts 4

    Hi guys!

    I've made a simple INSERT form write some records in a database....

    then I need to associate to every record a PDF FILE or a WORD FILE..

    so who (a user) insert a record should upload a file ....

    How could associate the record to the file that an user upload?

    classical article pubblication problem...do you know some tutorial?

     

    3rdEyed

  • Re: INSERT RECORD with PDF WOED files

    03-01-2007, 1:54 AM
    Answer

    Hi 3rdEyed,

    There are 2 ways that come to my mind in doing this.

    1. Add a VarChar field in your table which stores the path and file name of the PDF or DOC file. You can later get this file from the file system and do whatever you like.

    2. Use a FileStream to get file in a byte array. You can store the byte array in a binary field in database table.

    I will recommend the first way, since it will not give much overhead to database.

    Sincerely,
    Kevin Yu
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Mark as Not Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Re: INSERT RECORD with PDF WORD files

    03-02-2007, 4:26 AM
    • Loading...
    • thirdeyed
    • Joined on 02-26-2007, 9:25 AM
    • Posts 4
    Kevin Yu - MSFT:

    Hi 3rdEyed,

    There are 2 ways that come to my mind in doing this.

    1. Add a VarChar field in your table which stores the path and file name of the PDF or DOC file. You can later get this file from the file system and do whatever you like.

    2. Use a FileStream to get file in a byte array. You can store the byte array in a binary field in database table.

    I will recommend the first way, since it will not give much overhead to database.

     Hi thanks for the answer..did you some example SCRIPT or TUTORIAL?

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter