Hi,
When executing the following code, cEncode contains the correct value but cDecode get incorrect value.
Tested with today’s harbour-nightly download. Please let me know the cause of the error.
/* code start
/* compile with hbwin.hbc */
Procedure Main
local cEncode :="", cDecode :=""
local cFile := hb_cwd()+"HbBase.pdf"
local cOutFileName := hb_cwd()+"HbDecode.pdf",hOutPut := 0
setmode(25,80)
cEncode := hb_base64encode(cFile)
cDecode :=hb_base64decode(cEncode)
hOutput := FCreate( cOutFileName )
FWrite( hOutput, cDecode)
FClose( hOutput )
wapi_shellexecute(,"Open",cOutFileName)
return NIL
/* code end */
Warm regards,
Jayadev
Hi Budyanto,
Thanks for your immediate reply.
When executing the code, if you inspect, cEncode contains a converted string as under:
“ZTpccHJvamVjdHNcV2hhdHNhcHBcSGJCYXNlLnBkZg==”
But cDecode gets the value “e:\projects\Whatsapp\HbBase.pdf” which is wrong.
Warm regards,
Jayadev
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups
"Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/b266157a-c9f6-9067-e15a-b90f1ad72f0f%40csacomputer.com.