Hi,
i am saving an attachment to document library in FormEvents_Submit event of infopath 2010 and also submitting to form library.
public void FormEvents_Submit(object sender, SubmitEventArgs e)
{
// Decode the InfoPath file ...