Search found 85 matches: base64encode

Return to advanced search

Re: España: Normativa sancionadora sistemas informáticos

Hola, ¿ Alguien tiene implementada el hash 256 de la huella en harbour ?  [/code] Paquito, en harbour es muy fácil (como en casi todo) ... //-----------------------------------------------------------------------------//// Especificaciones de huella o hash//-----------------------------------------...
by Xevi
Fri Aug 02, 2024 8:44 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: España: Normativa sancionadora sistemas informáticos
Replies: 176
Views: 46193

Re: hb_base64encode() stays empty

Excellent :)
by Lailton
Fri May 17, 2024 4:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_base64encode() stays empty
Replies: 10
Views: 1230

Re: hb_base64encode() stays empty

Dear friends, thank you so much for your help. Now I also added a MEMOWRIT() to see the return value of hb_base64encode() before anything is processed through microsoft cdo object. I get perfectly fine base64 output. When I insert it to https://base64.guru/converter/decode/image it successfu...
by Ruth
Fri May 17, 2024 9:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_base64encode() stays empty
Replies: 10
Views: 1230

Re: hb_base64encode() stays empty

Like @cmsoft said, try something like:

Code: Select all  Expand view
cImgBase64 := strtran( strtran( cImgBase64 ), CRLF ), "=" )


I tested it with an old version xhb and worked

if it still not working for you, can you tell us which version xhb are you using?
by Lailton
Thu May 16, 2024 11:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_base64encode() stays empty
Replies: 10
Views: 1230

Re: hb_base64encode() stays empty

Ruth
Prueba con
Code: Select all  Expand view
cImgBase64 := STRTRAN(cImgBase64,CRLF,'')

Esto le quita todos los saltos de linea
by cmsoft
Thu May 16, 2024 12:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_base64encode() stays empty
Replies: 10
Views: 1230

Re: hb_base64encode() stays empty

Dear Lailton, thank you very much for helping me. I tried with alltrim now - but it seems to make no difference. I think microsoft refuses the long string here maybe... :?: If I put the code I post below it adds an unwanted ! after about 2 1/2 lines of characters for the   "<p>" + al...
by Ruth
Thu May 16, 2024 7:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_base64encode() stays empty
Replies: 10
Views: 1230

Re: hb_base64encode() stays empty

Great!

%20 is related to some "space" in your string.

try to replace this line:
Code: Select all  Expand view
+ '<img src=\"data:image/jpeg;base64,' + cImgBase64 + '\" > ';


with

Code: Select all  Expand view
+ '<img src="data:image/jpeg;base64,'+alltrim(cImgBase64)+'">';


then try it again.
by Lailton
Wed May 15, 2024 10:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_base64encode() stays empty
Replies: 10
Views: 1230

Re: hb_base64encode() stays empty

Dear Lailton, this is so wonderful!!! Thank you very much :) Now with the 2 parameters in the function I get a value back also in xharbour. But what happens now when I send an email with the base64-encoded content using cdo I suppose is that Microsoft adds unwanted characters and linebreaks and does...
by Ruth
Wed May 15, 2024 7:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_base64encode() stays empty
Replies: 10
Views: 1230

Re: hb_base64encode() stays empty

Hi Ruth,

for xHarbour you should send 2 parameters, the first one is the string and second one is the lenght.
Code: Select all  Expand view
cRaw := memoReady( "yourFile" )
cBase64 := hb_base64encode( cRaw, len( cRaw ) )


this way you will have a string as return.

Let me know if it worked.
by Lailton
Wed May 15, 2024 6:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_base64encode() stays empty
Replies: 10
Views: 1230

Re: hb_base64encode() stays empty

Dear Mr. Gomez, dear friends, thank you a lot for helping me. I appreciate it very much. Please can you help me understand further. I combined now that modharbour returns a string for hb_base64encode() whereas in xharbour it returns an array. Is this a correct assumption? Thank you for your help. Or...
by Ruth
Wed May 15, 2024 5:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_base64encode() stays empty
Replies: 10
Views: 1230

Re: hb_base64encode() stays empty

Ruth: Has esta prueba // C:\FWH\SAMPLES\RUTHBASE64.PRG#include "FiveWin.ch"#Include "Outlook.ch"#Include "Mail.ch"FUNCTION Main()  LOCAL cImgPath, cImgBase64 := {}, cImgMemo   cImgPath     := "c:\fwh\samples\img\start_slid...
by cmsoft
Wed May 15, 2024 12:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_base64encode() stays empty
Replies: 10
Views: 1230

hb_base64encode() stays empty

Dear friends, please could you be so kind as to help me out. Here is a small piece of code that on my systems does not produce output for hb_base64encode() https://mybergland.com/ruth/screenshot3.png // C:\FWH\SAMPLES\RUTHBASE64.PRG#include "FiveWin.ch"#Include "Outlook.ch...
by Ruth
Wed May 15, 2024 9:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_base64encode() stays empty
Replies: 10
Views: 1230

Re: Crear Archivo Json y Enviarlo vía POST

Que libereias tengo que enlazar con XHARBOUR y FiveWin for xHarbour 64 parar incluir estos funciones? Error: Unresolved external '_HB_FUN_HB_BASE64ENCODE' referenced from C:\FIVEWIN21\FWH\SAMPLES\APP1API.OBJ Error: Unresolved external '_HB_FUN_HB_JSONENCODE' referenced from C:\FIVEWIN21\FWH\SAMPLES\...
by PAUL SIMM
Sun May 05, 2024 10:16 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Crear Archivo Json y Enviarlo vía POST
Replies: 19
Views: 3544

Re: Crear Archivo Json y Enviarlo vía POST

Que libereias tengo que enlazar con XHARBOUR y FiveWin for xHarbour 64 parar incluir estos funciones? Error: Unresolved external '_HB_FUN_HB_BASE64ENCODE' referenced from C:\FIVEWIN21\FWH\SAMPLES\APP1API.OBJ Error: Unresolved external '_HB_FUN_HB_JSONENCODE' referenced from C:\FIVEWIN21\FWH\SAMPLES\...
by PAUL SIMM
Sun May 05, 2024 10:16 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Crear Archivo Json y Enviarlo vía POST
Replies: 19
Views: 3544

Re: Soap Web Service - timeout request

Dear Darrell, Please try this: oHttp:Open( 'POST', cURL, .F. ) oHttp:SetRequestHeader( "Content-Type","application/xml") oHttp:SetRequestHeader( "Accept","*/*") oHttp:SetRequestHeader( "Authorization", "Basic "+hb_base64Encode(cCred)) oHttp...
by Antonio Linares
Tue Jan 09, 2024 6:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Soap Web Service - timeout request
Replies: 4
Views: 910
Next

Return to advanced search