diff --git a/Code/IO/otbImageIOFactory.cxx b/Code/IO/otbImageIOFactory.cxx
index 644e39e8d9fefebfb603949ccadb12d5c2d48bbf..f399168ea2a7c55d41df3812adbec2ffaa0d6c51 100755
--- a/Code/IO/otbImageIOFactory.cxx
+++ b/Code/IO/otbImageIOFactory.cxx
@@ -9,6 +9,7 @@
 #include "otbCAIImageIOFactory.h"
 #include "otbGDALImageIOFactory.h"
 #include "otbONERAImageIOFactory.h"
+#include "otbMSTARImageIOFactory.h"
 
 namespace otb
 {
@@ -34,6 +35,8 @@ ImageIOFactory::RegisterBuiltInFactories()
                 itk::MutexLockHolder<itk::SimpleMutexLock> mutexHolder( mutex );
                 if( firstTime )
                 {
+
+
                         //For an SPOT5TIF image, if the user set only the directory, this image is read with CAI.
                         //Otherwise, if the user set the name of the image ('IMAGERY.TIF') it read with GDAL.
                         
@@ -43,6 +46,8 @@ ImageIOFactory::RegisterBuiltInFactories()
                         itk::ObjectFactoryBase::RegisterFactory( GDALImageIOFactory::New() );
                         // CAI : New format for OTB
                         itk::ObjectFactoryBase::RegisterFactory( CAIImageIOFactory::New() );
+			//MSTAR Format
+			itk::ObjectFactoryBase::RegisterFactory( MSTARImageIOFactory::New() );
                        firstTime = false;
                 }
         }
diff --git a/Code/IO/otbMSTARImageIO.cxx b/Code/IO/otbMSTARImageIO.cxx
index 5feab0584b7f28e574d919c01143ba38377b3629..64fafdc6850d332b481e3a4ede0afb987f50b933 100755
--- a/Code/IO/otbMSTARImageIO.cxx
+++ b/Code/IO/otbMSTARImageIO.cxx
@@ -85,7 +85,8 @@ bool MSTARImageIO::CanReadFile( const char* filename )
 
         int NbLignes;                /* Nombre de lignes de l'image */
         int NbColonnes;              /* Nombre de colonnes de l'image */
- 
+
+	MSTARname = filename;
 
 	MSTARfp = fopen(MSTARname,"rb");
 	if (MSTARfp == NULL)
@@ -225,6 +226,8 @@ bool MSTARImageIO::CanWriteFile( const char * filename )
                 itkDebugMacro(<<identificationErreur.c_str());
         }
 
+	return formatFound;
+
 }