Magnetic field and currents in HTSC films