Jump to content
Sign in to follow this  
metis

Image to base64 code

Recommended Posts

metis

Hi i need code to convert my image (in my disc) to code base64 image.

Thx.

Share this post


Link to post
Share on other sites
JLogan3o13

Hi, metis. You have to provide a lot more information than that :oops: Help us help you; provide a detailed description of the problem, screenshots if helpful, and any relevant code that you've tried.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
UEZ

Have a look here: http://www.autoitscript.com/forum/index.php?showtopic=134350&view=findpost&p=936643

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
xroot

metis, I wrote this a while back, you select an image, it converts to base64 and puts it on the clipboard.

Just paste into where ever you need.

Change the path to your image dir.

;Xroot 2011
ClipPut("")
$FN=FileOpenDialog("Pick The Image You Want...","C:My DocumentsImages","Images(*.*)",3)
If @error Then
    MsgBox(4096,"","No File Selected.....",2)
    Exit
EndIf
$dat=FileRead(FileOpen($FN,16))
$objXML=ObjCreate("MSXML2.DOMDocument")
$objNode=$objXML.createElement("b64")
$objNode.dataType="bin.base64"
$objNode.nodeTypedValue=$dat
ClipPut($objNode.Text)
  • Like 3

Share this post


Link to post
Share on other sites
UEZ

@xroot: nice small code!

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×