src/main/java/edu/escuelaing/arep/app/servidor/Servidor.java
public void MostrarImagen(File pagina, String formato) throws IOException {
        
        FileInputStream fis = new FileInputStream(pagina);
         byte[] data = new byte[(int) pagina.length()];
         fis.read(data);
         fis.close();

         DataOutputStream dataOutputStream2 = new DataOutputStream(outputStream);
         String outString = "HTTP/1.1 200 Ok\r\n" + 
         "Content-type: image/"+ formato +"\r\n" +
         "Server: Java HTTP Server\r\n" +
         "Date: " + new Date() + "\r\n" +
         "Content-Length: " + data.length + "\r\n"
         + "\r\n";
         dataOutputStream2.writeBytes(outString);
         dataOutputStream2.write(data);
         dataOutputStream2.close();

        
    }
/**
     * metodo con el cual se genera la pagina para poder mostrar imagenes
     * @param pagina
     * @param formato
     * @throws IOException
     */
metodo con el cual se genera la pagina para poder mostrar imagenes
@param pagina
@param formato
@throws IOException
metodo con el cual se genera la pagina para poder mostrar imagenes @param pagina @param formato @throws IOException
public void MostrarImagen(File pagina, String formato) throws IOException {
        FileInputStream fis = new FileInputStream(pagina);
         byte[] data = new byte[(int) pagina.length()];
         fis.read(data);
         fis.close();
         DataOutputStream dataOutputStream2 = new DataOutputStream(outputStream);
         String outString = "HTTP/1.1 200 Ok\r\n" + 
         "Content-type: image/"+ formato +"\r\n" +
         "Server: Java HTTP Server\r\n" +
         "Date: " + new Date() + "\r\n" +
         "Content-Length: " + data.length + "\r\n"
         + "\r\n";
         dataOutputStream2.writeBytes(outString);
         dataOutputStream2.write(data);
         dataOutputStream2.close();
    }
public void MostrarImagen ( File pagina , String formato ) throws IOException { FileInputStream fis = new FileInputStream ( pagina ) ; byte [ ] data = new byte [ ( int ) pagina . length ( ) ] ; fis . read ( data ) ; fis . close ( ) ; DataOutputStream dataOutputStream2 = new DataOutputStream ( outputStream ) ; String outString = "HTTP/1.1 200 Ok\r\n" + "Content-type: image/" + formato + "\r\n" + "Server: Java HTTP Server\r\n" + "Date: " + new Date ( ) + "\r\n" + "Content-Length: " + data . length + "\r\n" + "\r\n" ; dataOutputStream2 . writeBytes ( outString ) ; dataOutputStream2 . write ( data ) ; dataOutputStream2 . close ( ) ; }
metodo con el cual se genera la pagina para poder mostrar imagenes
 @param pagina
 @param formato
 @throws IOException
metodo con el cual se genera la pagina para poder mostrar imagenes @param pagina @param formato @throws IOException