Re: [WebDNA] Decode Base64 Image

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114687
interpreted = N
texte = 2309 --000000000000e94a21058fea5f4d Content-Type: text/plain; charset="UTF-8" Stuart, Hi - I would be interested in seeing the Imagemagick code you used to sort this. - Tom ============================================== Digital Revolutionaries 1st Floor, Castleriver House 14-15 Parliament Street Temple Bar,Dublin 2 Ireland ---------------------------------------------- [t]: + 353 1 4403907 [e]: [w]: ============================================== On Fri, 9 Aug 2019 at 08:25, Stuart Tremain wrote: > Thanks Tom > > I got it working using Imagemagick but I like your solution - no relying > on another piece of software. > > Kind regards > > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@plsoftware.com.au > > > > > > > > On 9 Aug 2019, at 17:05, Tom Duke wrote: > > Stuart, > > This works for me. > > - Tom > > > > [!] > > ### Write the image-data to disk ### > > [/!][writefile file=/img/[varIMAGEID].txt][varBASE64STRING][/writefile][!] > > ### Load and decode the image-data ### > > [/!][writefile file=/img/[varIMAGEID].jpg][!] > [/!][shell]base64 -d '/full-path-to-the-image/[varIMAGEID].txt'[/shell][!] > [/!][/writefile][!] > > ### Delete the image-data text file ### > > [/!][deletefile file=/img/[varIMAGEID].txt] > > > > ============================================== > Digital Revolutionaries > 1st Floor, Castleriver House > 14-15 Parliament Street > Temple Bar,Dublin 2 > Ireland > ---------------------------------------------- > [t]: + 353 1 4403907 > [e]: > [w]: > ============================================== > > > On Fri, 9 Aug 2019 at 05:57, Stuart Tremain > wrote: > >> I have come up against the wall trying to save a Base64 string as an >> image. >> >> Has anyone had success doing this ? >> >> Any ideas ? >> >> >> Kind regards >> >> Stuart Tremain >> Pharoah Lane Software >> AUSTRALIA >> webdna@plsoftware.com.au >> >> >> On 3 May 2017, at 08:31, Tom Duke wrote: >> >> Hi all, >> >> So I can Base64 encode an image using: >> >> [encrypt method=Base64&file=my-test.jpg][/encrypt] >> >> How do I decode the Base64 data back using WebDNA? >> >> - Tom >> >> >> --------------------------------------------------------- This message is >> sent to you because you are subscribed to the mailing list . To >> unsubscribe, E-mail to: archives: >> http://mail.webdna.us/list/talk@webdna.us Bug Reporting: >> support@webdna.us >> >> >> >> >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------- This message is >> sent to you because you are subscribed to the mailing list talk@webdna.us >> To unsubscribe, E-mail to: talk-leave@webdna.us archives: >> http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list talk@webdna.us > To unsubscribe, E-mail to: talk-leave@webdna.us archives: > http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list talk@webdna.us > To unsubscribe, E-mail to: talk-leave@webdna.us archives: > http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us --000000000000e94a21058fea5f4d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Stuart,

Hi - =C2=A0I w= ould be interested in seeing the=C2=A0Imagemagick=C2=A0code you used to sor= t this.

- Tom


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Digit= al Revolutionaries
1st Floor, Castleriver House
14-15 Parliament Stre= et
Temple Bar,Dublin 2
Ireland
-----------------------------------= -----------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionaries.ie>
[= w]: <http:/= /www.revolutionaries.ie/>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D


On Fri, 9 Aug 201= 9 at 08:25, Stuart Tremain <= webdna@plsoftware.com.au> wrote:
Thanks Tom

=
I got it working using Imagemagick but I like your solution - no= relying on another piece of software.

Kind regards

Stuart Trema= in
Pharoah Lane Software
AUSTRALIA







On 9 Aug 2019, at 17:05, Tom Duke &= lt;tom@revoluti= onaries.ie> wrote:

Stuart,
=
This works for me.

- Tom
=


[!]

### =C2=A0= Write the image-data to disk =C2=A0###

[/!][writefile file=3D/img/[varIMAGEID].txt][varBASE64ST= RING][/writefile][!]

### =C2=A0Load and decode the image-data =C2=A0###

[/!][writefile file=3D/img/[varIMAGEID].= jpg][!]
[/!][shell]base64 -d '= /full-path-to-the-image/[varIMAGEID].txt'[/shell][!]
[/!][/writefile][!]

### =C2=A0Delete the image-data text file =C2=A0###<= /div>

[/!][deletefile file= =3D/img/[varIMAGEID].txt]


=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D
Digital Revolutionaries
1st Floor, Castleriver House
14-= 15 Parliament Street
Temple Bar,Dublin 2
Ireland
-----------------= -----------------------------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionari= es.ie>
[w]: <http://www.revolutionaries.ie/>
=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


On Fri, 9 Aug 2019 at 05:57, Stuart Tremain <webdna@plsoftware.com.au> wrote:=
I have come up against the wall trying to save a Base64 string as an= image.

Has anyone had success doing this ?
Any ideas ?


Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA
<= br>
On 3 May 2017,= at 08:31, Tom Duke <tom@revolutionaries.ie> wrote:

Hi all,

So I can Base64 encode an ima= ge using:

=C2=A0 =C2=A0 [encrypt method=3DBase64&a= mp;file=3Dmy-test.jpg][/encrypt]

How do I decode t= he Base64 data back using WebDNA?

- Tom
=

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us


=




<= /span>




--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@webdna.us --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --000000000000e94a21058fea5f4d-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Decode Base64 Image (Stuart Tremain 2019)
  2. Re: [WebDNA] Decode Base64 Image (Tom Duke 2019)
  3. Re: [WebDNA] Decode Base64 Image (Stuart Tremain 2019)
  4. Re: [WebDNA] Decode Base64 Image (Tom Duke 2019)
  5. Re: [WebDNA] Decode Base64 Image (Stuart Tremain 2019)
  6. [WebDNA] Decode Base64 Image (Tom Duke 2017)
2309 --000000000000e94a21058fea5f4d Content-Type: text/plain; charset="UTF-8" Stuart, Hi - I would be interested in seeing the Imagemagick code you used to sort this. - Tom ============================================== Digital Revolutionaries 1st Floor, Castleriver House 14-15 Parliament Street Temple Bar,Dublin 2 Ireland ---------------------------------------------- [t]: + 353 1 4403907 [e]: [w]: ============================================== On Fri, 9 Aug 2019 at 08:25, Stuart Tremain wrote: > Thanks Tom > > I got it working using Imagemagick but I like your solution - no relying > on another piece of software. > > Kind regards > > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@plsoftware.com.au > > > > > > > > On 9 Aug 2019, at 17:05, Tom Duke wrote: > > Stuart, > > This works for me. > > - Tom > > > > [!] > > ### Write the image-data to disk ### > > [/!][writefile file=/img/[varIMAGEID].txt][varBASE64STRING][/writefile][!] > > ### Load and decode the image-data ### > > [/!][writefile file=/img/[varIMAGEID].jpg][!] > [/!][shell]base64 -d '/full-path-to-the-image/[varIMAGEID].txt'[/shell][!] > [/!][/writefile][!] > > ### Delete the image-data text file ### > > [/!][deletefile file=/img/[varIMAGEID].txt] > > > > ============================================== > Digital Revolutionaries > 1st Floor, Castleriver House > 14-15 Parliament Street > Temple Bar,Dublin 2 > Ireland > ---------------------------------------------- > [t]: + 353 1 4403907 > [e]: > [w]: > ============================================== > > > On Fri, 9 Aug 2019 at 05:57, Stuart Tremain > wrote: > >> I have come up against the wall trying to save a Base64 string as an >> image. >> >> Has anyone had success doing this ? >> >> Any ideas ? >> >> >> Kind regards >> >> Stuart Tremain >> Pharoah Lane Software >> AUSTRALIA >> webdna@plsoftware.com.au >> >> >> On 3 May 2017, at 08:31, Tom Duke wrote: >> >> Hi all, >> >> So I can Base64 encode an image using: >> >> [encrypt method=Base64&file=my-test.jpg][/encrypt] >> >> How do I decode the Base64 data back using WebDNA? >> >> - Tom >> >> >> --------------------------------------------------------- This message is >> sent to you because you are subscribed to the mailing list . To >> unsubscribe, E-mail to: archives: >> http://mail.webdna.us/list/talk@webdna.us Bug Reporting: >> support@webdna.us >> >> >> >> >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------- This message is >> sent to you because you are subscribed to the mailing list talk@webdna.us >> To unsubscribe, E-mail to: talk-leave@webdna.us archives: >> http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list talk@webdna.us > To unsubscribe, E-mail to: talk-leave@webdna.us archives: > http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list talk@webdna.us > To unsubscribe, E-mail to: talk-leave@webdna.us archives: > http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us --000000000000e94a21058fea5f4d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Stuart,

Hi - =C2=A0I w= ould be interested in seeing the=C2=A0Imagemagick=C2=A0code you used to sor= t this.

- Tom


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Digit= al Revolutionaries
1st Floor, Castleriver House
14-15 Parliament Stre= et
Temple Bar,Dublin 2
Ireland
-----------------------------------= -----------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionaries.ie>
[= w]: <http:/= /www.revolutionaries.ie/>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D


On Fri, 9 Aug 201= 9 at 08:25, Stuart Tremain <= webdna@plsoftware.com.au> wrote:
Thanks Tom

=
I got it working using Imagemagick but I like your solution - no= relying on another piece of software.

Kind regards

Stuart Trema= in
Pharoah Lane Software
AUSTRALIA







On 9 Aug 2019, at 17:05, Tom Duke &= lt;tom@revoluti= onaries.ie> wrote:

Stuart,
=
This works for me.

- Tom
=


[!]

### =C2=A0= Write the image-data to disk =C2=A0###

[/!][writefile file=3D/img/[varIMAGEID].txt][varBASE64ST= RING][/writefile][!]

### =C2=A0Load and decode the image-data =C2=A0###

[/!][writefile file=3D/img/[varIMAGEID].= jpg][!]
[/!][shell]base64 -d '= /full-path-to-the-image/[varIMAGEID].txt'[/shell][!]
[/!][/writefile][!]

### =C2=A0Delete the image-data text file =C2=A0###<= /div>

[/!][deletefile file= =3D/img/[varIMAGEID].txt]


=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D
Digital Revolutionaries
1st Floor, Castleriver House
14-= 15 Parliament Street
Temple Bar,Dublin 2
Ireland
-----------------= -----------------------------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionari= es.ie>
[w]: <http://www.revolutionaries.ie/>
=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


On Fri, 9 Aug 2019 at 05:57, Stuart Tremain <webdna@plsoftware.com.au> wrote:=
I have come up against the wall trying to save a Base64 string as an= image.

Has anyone had success doing this ?
Any ideas ?


Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA
<= br>
On 3 May 2017,= at 08:31, Tom Duke <tom@revolutionaries.ie> wrote:

Hi all,

So I can Base64 encode an ima= ge using:

=C2=A0 =C2=A0 [encrypt method=3DBase64&a= mp;file=3Dmy-test.jpg][/encrypt]

How do I decode t= he Base64 data back using WebDNA?

- Tom
=

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us


=




<= /span>




--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@webdna.us --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --000000000000e94a21058fea5f4d-- . Tom Duke

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

New Zealand [OT - was Car Database] (2002) Where's Cart Created ? (1997) 2.0 Info (1997) show all problem (1997) wierd [cart] action! (1997) HideIf ip= OR ip= (1998) pull downs (1997) [carts] and databases (1997) WC2f3 (1997) ErrorMessages.db (1998) Logical and or in [hideif] (1997) New Web Site Developers Database (1996) faxing orders (2000) Multiple serial numbers (1997) [OT] My own Hot Mail like e-mail services (2003) Using Eudora instead of Emailer, and cron facility (1998) PCS Frames (1997) UPS QuickCost and More (2000) Preventing code execution (2003) WebCat2b12--[searchstring] bug (1997)