[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Base64
[Thread Prev] | [Thread Next]
- Subject: Re: Base64
- From: Fabien Bodard <gambas.fr@xxxxxxxxx>
- Date: Mon, 13 Oct 2025 13:16:30 +0200
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
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 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 > > >
| Re: Base64 | Fabien Bodard <gambas.fr@xxxxxxxxx> |
| Base64 | Fabien Bodard <gambas.fr@xxxxxxxxx> |
| Re: Base64 | Christof Thalhofer <chrisml@xxxxxxxxxxx> |