I was tring to use the LOAD DATA INFILE as a sotred procedure but it seems it cannot be done. Then i tried the usual way of embedding the code to the application itself like
I too encountered with this problem, then I created the bulk insert script and run it using C#.net code