Jump to content

Image to base64 code


 Share

Recommended Posts

  • Moderators

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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

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)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...