Skip to content

decodeBase64Image(__)

MarcoDotIO edited this page Dec 7, 2022 · 2 revisions

decodeBase64Image(_:)

os(iOS) || os(tvOS) || os(watchOS)

Input a Base64 image binary String to receive an UIImage object.

public func decodeBase64Image(_ b64Data: String) throws -> UIImage 

Parameters

  • b64Data: The Base64 data itself in String form.

Returns

A UIImage object.

decodeBase64Image(_:)

os(macOS)

Input a Base64 image binary String to receive an NSImage object.

public func decodeBase64Image(_ b64Data: String) throws -> NSImage 

Parameters

  • b64Data: The Base64 data itself in String form.

Returns

An NSImage object.

Types
Global Functions

Clone this wiki locally