How to send .txt file (contains random data of 1kb) to UVM Driver

Your driver should work independently of how the data was generated. A driver simply converts a procedural method call from your testbench (a transaction) to pin wiggles that communicate with your DUT through an interface.

In the UVM, we use sequences to generate transactions that are sent to your driver. You just need to write a sequence that reads the file and converts it to items sent to the driver.