Hello i have this code:
Global $fp="bla.jpg"
$sFile = $fp
$sForm = _
'<form action="http://imgur.com/api/upload.xml" method="post" enctype="multipart/form-data">' & _
' <input type="file" name="image" />' & _
' <input name="key">' & _
'</form>'
$hOpen = _WinHttpOpen()
$hForm = $sForm
$sRead = _WinHttpSimpleFormFill($hForm, $hOpen, Default, "name:image", $sFile, "name:key", "b3625162d3418ac51a9ee805b1840452")
_WinHttpCloseHandle($hForm)
_WinHttpCloseHandle($hOpen)
If $sRead Then ConsoleWrite($sRead & @CRLF)
But it doesnt working IMGUR reply(Image format not supported, or image is corrupt) i think it is with post but i dont know how to implement a base64 encode for it.. can someone help me ? Thanks