[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Base64


Le lun. 13 oct. 2025 à 13:16, Fabien Bodard <gambas.fr@xxxxxxxxx> a écrit :

>
>
> Fabien Bodard
>
> Le lun. 13 oct. 2025, 13:03, Christof Thalhofer <chrisml@xxxxxxxxxxx> a
> écrit :
>
>> Am 13.10.25 um 11:21 schrieb Fabien Bodard:
>>
>> > What would be the correct method for converting an image to Base64? And
>> > vice versa?
>> >
>> > for writing /reading xml file for example.
>>
>> sbuf = File.Load(sPath)
>> sbuf = Base64(sbuf)
>> sImg = UnBase64(sbuf)
>> File.Save(sPath, sImg)
>>
>
> Yes it will do the job
>
> Thank you Alles
>

I mean Christof 😅


>
> In my mind I was trying to pass directly from the image object to the
> base64.
>
> But your way make more senses.
> - save image as temp
> - load temps as string and convert it.
>
> The weight of the image is less than in row in this way.
>
>
>> Alles Gute
>>
>> Christof Thalhofer
>>
>> --
>> [x] nail here for new monitor
>>
>>
>>

-- 
Fabien Bodard

Follow-Ups:
Re: Base64Christof Thalhofer <chrisml@xxxxxxxxxxx>
References:
Base64Fabien Bodard <gambas.fr@xxxxxxxxx>
Re: Base64Christof Thalhofer <chrisml@xxxxxxxxxxx>
Re: Base64Fabien Bodard <gambas.fr@xxxxxxxxx>