Creating a Job to insert BLOB data into a MySQL table
Create a Job to iterate over the picture files in the "C:/Talend/images" folder and insert each one into the blobdemo table.

- The tFileList iterates all pictures in the "C:/Talend/images" folder.
- The tFixedFlowInput gets the current file path and outputs it.
- The tMap calls the routine to read the files as byte array.
- The tMysqlOutput inserts the BLOB data into the target table.
Set up the Job
Procedure
- Create a standard Job and enter its name, in this example Insertblobdatatodatabase.
- Place the following components to the design workspace: tFileList, tFixedFlowInput, tMap and tMysqlOutput.
- Connect the tFileList and the tFixedFlowInput using an Iterate link.
- Connect the tFixedFlowInput to the tMap and the tMap to the tMysqlOutput using links.
Configure the data input
Procedure
Configure the tMap component to call the user routine
Before you begin
- You have created a user routine.
Procedure
Insert the BLOB data into the target table
Before you begin
- You have created a MySQL table.
Procedure
Executing the Job to insert BLOB data into a MySQL table
Procedure
- Press Ctrl+S to save your Job.
- Press F6 to execute the Job.
- Query the blobdemo table to verify that the pictures were inserted successfully.