Skip to content

get the binary representation as NSData #6

Description

@lexar

Hi,
[FileHash md5HashOfFileAtPath:myPath] returns the hexadecimal representation of the digest. I would need the 16 bytes binary form, is there any way to get this?
Reason? I need to apply a base64 on the binary data using
[md5ByteStringData base64EncodedStringWithOptions:0]
and put this into a content-md5 HTTP header.
I searched now for a long time and could not find any convenient way to do this.
Any help appreciated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions