jpg images are binary images, but textread() is for reading text files.
Does the .dat file perhaps contain thenames of the images rather than the images themselves?
There is no standard format for .dat files: it is a suffix used by any program to hold any data. You need to know the internal structure of that particular .dat file in order to work with it. Itmight be pure text (most .dat files are not).
Best Answer