<<  >> (p.57)
    Author Topic: MultiBit  (Read 336639 times)
    jim618 (OP)
    Legendary
    *
    Offline Offline

    Activity: 1708
    Merit: 1069



    View Profile WWW
    January 11, 2013, 11:41:19 AM
     #1121


    A quick fix for windows:

    Code:
        public static Sha256Hash hashFileContents(File f) throws IOException {
           / Lame implementation that just reads the entire file into RAM. Can be made more efficient later.
            FileInputStream fileInputStream = new FileInputStream(f);
            Sha256Hash sha256Hash = create(ByteStreams.toByteArray(fileInputStream));
            fileInputStream.close();
            fileInputStream = null;
            return sha256Hash;
        }

    merged and pushed to github.

    MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
Page 56
Viewing Page: 57