IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

base64 image Options · View
Milko
Posted: Wednesday, June 29, 2011 8:25:24 AM
Rank: Advanced Member

Joined: 6/28/2011
Posts: 76
Location: Vicenza
morning.
i have an xml file with a base64 (xsd:base64Binary) filedata.
i want to extract image data from my xml and generate the image file.
to do so i want to use mapforce to inject base64 data in a txt file. after that i use an external decoder to generate image file.

is it possible ?
my attempt fail because it seems i'm not able to generate a valid txt data file.

tx, milko.
vlad
Posted: Wednesday, June 29, 2011 8:41:08 AM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
The right tool for this is StyleVision, not MapForce. Since version 2011r2 it supports extracting embedded images encoded in base64 from XML file.

See example EmbeddedImages.sps which extracts images encoded in ProductLine.xml input file.
Milko
Posted: Wednesday, June 29, 2011 8:43:07 AM
Rank: Advanced Member

Joined: 6/28/2011
Posts: 76
Location: Vicenza
vlad wrote:
The right tool for this is StyleVision, not MapForce. Since version 2011r2 it supports extracting embedded images encoded in base64 from XML file.


tx vlad, i will try it right now.
a tip to start ?
:-)
island
Posted: Wednesday, June 29, 2011 9:14:37 AM
Rank: Newbie

Joined: 10/28/2002
Posts: 1,283
Location: AT
Please take a look at the section:

"Inserting an image that is encoded text" on the following page:

http://manual.altova.com/Stylevision/stylevisionenterprise/svcontent_graphics_imageuris.htm?zoom_highlightsub=inser+image
Milko
Posted: Wednesday, June 29, 2011 9:52:19 AM
Rank: Advanced Member

Joined: 6/28/2011
Posts: 76
Location: Vicenza
could you please check if my xml contain a valid base64 coded image ?
this is link:
https://docs.google.com/leaf?id=0B7l_9QG_HmDCYWE3NGI4NDktNjY5YS00MDRhLTk5OTktNjIwODY0OTlhNzBk&hl=it

tx, milko.
Milko
Posted: Wednesday, June 29, 2011 12:54:44 PM
Rank: Advanced Member

Joined: 6/28/2011
Posts: 76
Location: Vicenza
island wrote:
Please take a look at the section:
"Inserting an image that is encoded text" on the following page:
http://manual.altova.com/Stylevision/stylevisionenterprise/svcontent_graphics_imageuris.htm?zoom_highlightsub=inser+image



ok i don't have stylevision 11 rel 2.
so i need to use mapforce to create an ascii text file from base64 data stored inside xml file.
after that i use a commandline utility to decode base64 ascii text file to jpg.

do you think is it possible ?

tx, milko.
Milko
Posted: Wednesday, June 29, 2011 1:25:47 PM
Rank: Advanced Member

Joined: 6/28/2011
Posts: 76
Location: Vicenza
DONE !
:-)

just like I said in the preceeding post.
thanks to all of you !
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.