This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

AnnouncementAnnouncement Module

Collapse

No announcement yet.

help with loading files into Database as blob using MultiResourceItemReaderPage Title Module

help with loading files into Database as blob using MultiResourceItemReader

Mar 29th, 2010, 01:19 PM

Hi,

My requirement is to read a directory (i.e. C:\data) which might contain files like

a.csv
b.csv
x.csv

And then do two of the following things

1) take each file in that directory to load into the database as a blob
2) Read each file and process lines within each file and put them into a staging database table.

i know there is a MultiResourceItemReader for this purpose. If some one has a similar requirement and did this already, it would be great if they can share their thoughts and some sample code will help also.