Error while indexing large text file

Hi ,
I am using attachment plugin for indexing large text file but it giving the error of curl long input.

also i am having problem in how can i index large text file using java api.and which plugins i have to use.

Please help !!!!

thanks,
Sanjay