Changeset 27992

Show
Ignore:
Timestamp:
07.08.2013 13:50:35 (6 years ago)
Author:
sjm84
Message:

Changing the way the file is turned into bytes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/URLFilter.java

    r27989 r27992  
    33import java.io.File; 
    44import java.io.IOException; 
    5 import java.nio.file.Files; 
    6 import java.nio.file.Paths; 
    75import java.util.ArrayList; 
    86import java.util.HashMap; 
     
    1917import javax.servlet.http.HttpServletRequestWrapper; 
    2018 
     19import org.apache.commons.io.FileUtils; 
    2120import org.apache.log4j.Logger; 
    2221import org.greenstone.gsdl3.util.GSParams; 
     
    223222                            { 
    224223                                ServletOutputStream out = response.getOutputStream(); 
    225                                 out.write(Files.readAllBytes(Paths.get(baseInterfaceFile.getAbsolutePath()))); 
     224                                out.write(FileUtils.readFileToByteArray(baseInterfaceFile)); 
    226225                                return; 
    227226                            }