474,046 Members | 12,145 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to read IMAGEDATA tag from xml file

8 New Member
How to read the IMAGEDATA tag from the xml file.
OK.
Mar 2 '07 #1
8 2710
dorinbogdan
839 Recognized Expert Contributor
IMAGEDATA is not a standard tag.
In fact, the XML tags are user-defined and must be read as text.
And all tags are read in the same way (CDATA could make exception).

Please give us more details, sample data of XML and what language are you programming with? (C#, VB, Java, Javascript...)
Mar 2 '07 #2
rajesh0205
8 New Member
<?xml version="1.0" encoding="UTF-16" ?>
- <IMAGE_FILE>
- <VERSION_HISTOR Y APPLICATION_NAM E="TS_HOTELS API 1.0" XML_FILE_NAME=" 12033Image.xml" LICENCE_KEY="No ne" TS_API_VERSION= "v305.0.0">
<XML_VERSION_NO >1.0</XML_VERSION_NO>
</VERSION_HISTORY >
<SERVICEID>1203 3</SERVICEID>
- <IMAGE>
<IMAGE_NAME>Cap rice Hotel -- Exterior</IMAGE_NAME>
<IMAGE_TYPE>JPG </IMAGE_TYPE>
<IMAGEDATA>0xFF D8FFE000104A464 946000101010048 00480000FFDB004 3000503040420D1 941685473977056 044E1C42205DA52 5B980BCC20D3306 951E119C1F08A00 12D6B3FFFD90000 </IMAGEDATA>

</IMAGE>
</IMAGE_FILE>


this imagedata is not the write, there is lots of sequence. tell me how we read in the java script or jsp

how to read this file tell me
rajesh
Mar 7 '07 #3
dorinbogdan
839 Recognized Expert Contributor
I would try to use the reverse of the method used to generate the IMAGEDATA hexadecimal string.
I guess that the jpg file was read somehow (as binary?) and converted to hexa (or to base64 intermediary).
See the original method of conversion, based on which to build the de-conversion algorithm.

Because the conversion method could not be a standard one, so I cannot give an explicit solution, it depends on the original method.

The target is to obtain the initial binary data from the XML hexa string, which to be written as a jpg file.
If you provide the algorithm that converts from
binary -> hexa, it would be easy to find one for hexa -> binary.

I hope this helps.
Mar 7 '07 #4
MMcCarthy
14,534 Recognized Expert Moderator MVP
Rajesh

Experts volunteer their time on a forum like this to answer questions. I understand it can be frustrating not to get an answer but please be respectful to experts at all times as they are trying to help you.

ADMIN
Mar 11 '07 #5
dorinbogdan
839 Recognized Expert Contributor
Hi,
Did you succeed to solve the problem ?
If yes, please let me know, in order to close the thread.
Thanks,
Dorin.
Mar 21 '07 #6
rajesh0205
8 New Member
NO SIR,
IT STILL CONTINUING VREATING THE PROBLEM.
Apr 4 '07 #7
venkatsalem
1 New Member
http://jakarta.apache. org/commons/codec/

Apache common codec has lot Classes to encode and decode for different algorithm including Base64, Hex, etc...
Jun 12 '07 #8
dorinbogdan
839 Recognized Expert Contributor
Thanks for suggestion.
God bless you,
Dorin.
Jun 12 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

7
2628
by: Henri Schomäcker | last post by:
Hi folks, I got a windows com executable which returns a jpg image in a BSTR. Let's say, the var that holds the data is $imgData. With perl, in a cgi script, I may simpy write: 8<--------8<--------8<--------8<--------8<-------- $| = 1; print "Content-type: image/jpeg\n\n";
0
1178
by: Perttu Pulkkinen | last post by:
I am doing a news-oriented multiuser cms, where authors can design html-pages or plaintext-pages and then editor(s) accept them. Also they can load images, at least five - maybe. But I don't know yet where should I place tha imagedata. Options are at least: 1) To same table with the pagematerial, which naturally connects images with pages but on the other hand limit the number of images/pages. Also I am afraid, will this cause speed...
0
1212
by: Jerome | last post by:
Hi, I would like to know if there is a trick to use inlined raw data (encoded in base64 for example) to describe the content of an imageobject. I tried the following code, but i don't know how to describe the matching ENTITY. <!ENTITY ps_entity "how could i encode my ps file ???" > .... <mediaobject> <imageobject>
6
70971
by: SpaceApe | last post by:
Where does the imagedata get stored in following case? <img src="cid:image001.gif@01BF4C68.ABA6D350" When I tried to save the gif file by right clicking the picture I got it as .bmp. What does the number 01BF4C68.ABA6D350 indicate? How can I save the gif file on my harddisk?
1
1800
by: Andreas | last post by:
Hi! I'm not very familiar to C, but I do know a little. No I'm trying to read someone elses program, and this line (and simular, less complex lines) realy confuses me. Can someone explain? I'm not new to the concept of pointers, so I think that I have a fair chance. :-) What is this line doing?!?: srcptr=(MY_PIXEL*)(source->imageData+(top-j)*source->widthStep)+(left-i);
0
3650
by: CroDude | last post by:
Hi all! I have problems when writting bitmap to a byte array and after reading it back form byte to Bitmap object. What I do is this: First I throw Bitmap to a memory-stream and then I write it into byte from a stream. Exception (System.ArgumentException: Invalid parameter used) occurs when reading from byte over a memory-stream back to the Bitmap object. Please help, I'm really stuck here! Here's the code I use (Sorry for a long...
1
1216
by: rajesh0205 | last post by:
plz. tell me hwa we read the imagedata tag hich is the combination of the alphanumeric data in the xml file. plz send answer as earliest as possible
2
1354
by: rajesh0205 | last post by:
tell plz me, how we read the IMAGEDATA tag from xml file
1
3022
Kosal
by: Kosal | last post by:
Dear Sir/Madam Please help me to read xml code as below using asp thanks Best Regards <?xml version="1.0" encoding="utf-8" ?> <Service_GetHotelDetail> <GetHotelDetail_Response>
0
10548
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10339
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
12142
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11604
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8700
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6654
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3974
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.