cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

JPEG to XML Conversion using XI

JaganMohan
Participant
0 Likes
1,807

Dear Friends,

Can you please explain how to convert JPEG file to XML file using XI. Here the scenario is to pick a .jpeg file, convert it into xml and we have to read the data from the xml file. It gives the information related to that picture file.

Regards,

Jagan.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi,

refer the below link:

A Step-by-Step Image File to Image File Mapping and Conversion Using Java Mapping.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee5...

chirag

JaganMohan
Participant
0 Likes

Dear Chirag,

We have read that. But it is for converting .jpeg to .png format. Both are compressed and picture format. But we have to convert .jpeg to .xml file and need to read some data from that xml file.

For example, the jpeg file contains picture with some content in readable format. So we have to read that content and further process is going on according to that content.

Regards,

Jagan.

Edited by: Jaganmohan Ponmani on Aug 27, 2008 11:02 AM

Answers (3)

Answers (3)

JaganMohan
Participant
0 Likes

That R & D is stopped in that level. So I close this question.

henrique_pinto
Active Contributor
0 Likes

Readable information in JPeg are written in the Exif tag.

Search for Java APIs to read exif tag in Google, it wont be hard to find any.

For example:

http://jigsaw.w3.org/Doc/Programmer/api/org/w3c/tools/jpeg/Exif.html

http://sourceforge.net/projects/libexif

http://www.sno.phy.queensu.ca/~phil/exiftool/

http://www.drewnoakes.com/code/exif/

http://reader.imagero.com/uio/

Regards,

Henrique.

former_member187563
Contributor
0 Likes
Former Member
0 Likes

In this case you have to go for Java Mapping.

Also descide what kind of API you are going to use to read JPEG image.

Once you are able to read JPEG image, you can simpley read this information and generate an XML

thanks

farooq

JaganMohan
Participant
0 Likes

Dear Farooq,

Actually now we are not using any API for this. Is there any APIs available for this?

Regards,

Jagan.

Former Member
0 Likes

Hi,

I suggest u have to write the java module program to read the JPEG file.

1) Deploye the module program on XI server.

2) Use it in file channel

I think u have not gone through the link.

chirag