#ifndef _WIN32
#include <unistd.h> //for access, unlink
+#else
+#include <io.h> //for _access on Win32
#endif
// return true if the file exists
TagDocEntryHT & Ht = original->GetHeader()->GetEntry();
+ size_t dataSize = original->GetImageDataSize();
+ uint8_t* imageData = original->GetImageData();
+
//First of all copy the header field by field
// Warning :Accessor gdcmElementSet::GetEntry() should not exist
if ( gdcmBinEntry* b = dynamic_cast<gdcmBinEntry*>(d) )
{
copy->GetHeader()->ReplaceOrCreateByNumber(
- b->GetVoidArea(),
+ b->GetBinArea(),
b->GetLength(),
b->GetGroup(),
b->GetElement(),
}
}
- size_t dataSize = original->GetImageDataSize();
- void *imageData = original->GetImageData();
-
copy->SetImageData(imageData, dataSize);
original->GetHeader()->SetImageDataSize(dataSize);