Re: Use with SQL database

  •  12-11-2009, 8:59 PM

    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 Complete Thread