• Convert application/octet-stream data url to image/IMAGE_FORMAT data url.

    Parameters

    • dataUrl: string

      application/octet-stream;base64 data url.

    • OptionalfileName: null | string

      file name with extention by which mime format will be inferred. For a list of supported extention

    • OptionalmimeFormat: null | string

      manually set mime format for output result.

    Returns string

    modified data url if mime type inferring is successful or same input data url.

    FileHelper.getMimeTypeImage.

MMNEPVFCICPMFPCPTTAAATR