Add Scan Button to directly attach from scanner to any doc type

Is there any way to directly attach files from scanner
without

saving it to our machines before attach