🖼 Base64 Tools - three little ones ;)

These three simple individual extensions are already rolled into Juan's Base64 extension, but I believe it may be useful to some to have access to individual functions for specific needs....

Image To/From Base64
This extension has two functions, the first will convert whatever image is in an image component to a base64 string, the second will load a base64 string to an image component. There is an After Conversion to Base64 event as well

Blocks
imgasb64blocks
Usage
imgB64usage
AIX
ImageToBase64

JAVA
ImageBase64.java.txt (2.4 KB)

Canvas To Base64
This extension has the one function, working much the same as canvas saveas, but converting the canvas image to base64. There is an After Conversion event

Blocks
canvasB64blocks

Usage
canvB64usage

AIX
CanvasToBase64

JAVA
CanvasBase64.java.txt (1.9 KB)

Camera Picture to Base64
This extension will allow the user to take a picture with their camera, and to then return the thumbnail image of the picture taken as a base64 string. There is an After Picture Taken / Conversion event.

Blocks
camasB64blocks

Usage
camB64usage

AIX
CameraToBase64

JAVA
CameraBase64.java.txt (2.6 KB)

Video

Credits
My thanks to @Shreyash, @KUMARASWAMY_B.G, @vknow360, @Juan_Antonio for their help and support in creating these extensions
My thanks to @Shreyash for the RUSH extension builder

Available for use in any MIT AppInventor projects or competitions

#####################################################################
This work by TIMAI2 is licensed under a
Creative Commons Attribution-ShareAlike 4.0 Unported License with attribution.
Please use name = TIMAI2 and link to this source page when giving credit.
#####################################################################

18 Likes

These three simple individual extensions are already rolled into Juan's Base64 extension, but I believe it may be useful to some to have access to individual functions for specific needs....

Image To/From Base64
This extension has two functions, the first will convert whatever image is in an image component to a base64 string, the second will load a base64 string to an image component. There is an After Conversion to Base64 event as well

Blocks
imgasb64blocks
Usage
imgB64usage
AIX
ImageToBase64

JAVA
ImageBase64.java.txt (2.4 KB)

Canvas To Base64
This extension has the one function, working much the same as canvas saveas, but converting the canvas image to base64. There is an After Conversion event

Blocks
canvasB64blocks

Usage
canvB64usage

AIX
CanvasToBase64

JAVA
CanvasBase64.java.txt (1.9 KB)

Camera Picture to Base64
This extension will allow the user to take a picture with their camera, and to then return the thumbnail image of the picture taken as a base64 string. There is an After Picture Taken / Conversion event.

Blocks
camasB64blocks

Usage
camB64usage

AIX
CameraToBase64

JAVA
CameraBase64.java.txt (2.6 KB)

Video

Credits
My thanks to @Shreyash, @KUMARASWAMY_B.G, @vknow360, @Juan_Antonio for their help and support in creating these extensions
My thanks to @Shreyash for the RUSH extension builder

Available for use in any MIT AppInventor projects or competitions

#####################################################################
This work by TIMAI2 is licensed under a
Creative Commons Attribution-ShareAlike 4.0 Unported License with attribution.
Please use name = TIMAI2 and link to this source page when giving credit.
#####################################################################

18 Likes

Great @TimAI2 !, so the blocks are very clear and easy to understand.

5 Likes

Wow, you are Incredible

:scream: :exploding_head: :innocent:

1 Like

Wow! very nice extension

2 Likes

Nice extetion @TIMAI2

1 Like

A nice one @TIMAI2
:wink:

2 Likes

Well @TIMAI2 you have a lot of fans here i see :wink:

Maybe you could also do a Base45?

7 Likes

Epic work😍

2 Likes
3 Likes

Hi @TIMAI2 , are you able to share the source code for these extensions? It would be very appreciated.

1 Like

Now added to the first post :+1:

1 Like