Use with SQL database

Last post 12-11-2009, 8:59 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  12-11-2009, 4:40 PM 57712

    Use with SQL database

       Can I use this control to save multiple files into a SQL 2005 database?
     
    Joe
  •  12-11-2009, 8:59 PM 57714 in reply to 57712

    Re: Use with SQL database

    Joe,
     
    If you want to save the temp files to database , please try this  http://cutesoft.net/forums/2/42895/ShowThread.aspx
     
    ,
     
    If you want to keep the temp files in disk , and you can save the file data to database at FileUploaded event , or other events , or use properies/methods of AttachmentItem
     
    Use the OpenStream to get a Stream object,
     
    Stream stream=args.OpenStream();
     
    and then use stream.Read method to get the byte[] , save the byte[] in to the database.
     
    (in the http://cutesoft.net/forums/2/42895/ShowThread.aspx , you can know how to save byte[] to database)
     
    Regards,
    Terry
View as RSS news feed in XML