m_nStartBlock = 0;
m_nFinishBlock = 0;
m_cImageFilename = "";
// open the file
File ioLinkFile = new RandomAccessFile(new java.io.File(pFilename), "r");
// create a buffer
byte[] spBuffer = new byte[1024];
// fill the buffer from the file and null terminate it
int numRead = ioLinkFile.read(spBuffer);
byte[] buffer = new byte[numRead];
System.arraycopy(spBuffer, 0, buffer, 0, numRead);
// call the other constructor (uses a buffer instead of opening the file)