You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Bertrand Rousseau <be...@denali.be> on 2003/07/15 13:31:31 UTC

Binary data in the xml log file

Hello,

I have a problem with the logging system of JMeter for http response.  
In fact, I need to log the response data in order to see where and how  
a test has failed. But when I try to reformat the xml output with xsl,  
the parser stops and says that he could not parse the file because  
there are "illegal characters". After searching a bit I found that the  
problem was that any binary data (pictures for example) in a http  
response is included as raw text. Because of this, there are such  
illegal characters in the text and the log file is no longer a valid  
xml file.

Is there anyway to prevent this?

Below is a sample of the log file.

Thanks

-- Sample --

<sampleResult timeStamp="1058267865684" dataType="text"  
threadName="Thread Group-1"  
label="/WebObjects/Frameworks/DenaliSharedContentoFramework.framework/ 
WebServerResources/ligne-bleu.gif" time="95" responseMessage="OK"  
responseCode="200" success="true"><property xml:space="preserve"  
name="samplerData">http://www.denali.be/WebObjects/Frameworks/ 
DenaliSharedContentoFramework.framework/WebServerResources/ligne- 
bleu.gif</property><assertionResult failureMessage="" error="false"  
failure="false"/><binary>HTTP/1.1 200 OK
Date: Tue, 15 Jul 2003 11:17:46 GMT
Server: Apache/1.3.26
Last-Modified: Fri, 04 Jul 2003 07:21:48 GMT
ETag: "ce73-109-3f052b0c"
Accept-Ranges: bytes
Content-Length: 265
Connection: close
Content-Type: image/gif

GIF89a3ÔøΩÔøΩÔøΩÔøΩÔøΩÔøΩÔøΩeÔøΩiÔøΠ
©,√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ© 
!ÔøΩ,3ÔøΩpÔøΩjÔøΩÔøΩb{'flö 
JÔøΩXÔøΩÔøΩŸëcÔøΩÔøΩÔøΩÔøΩÔøΩÔøΩ\ÔøΩv{Ô 
øΩjÔøΩÔøΩ@ÔøΩOÔøΩÔøΩÔøΩÔøΩnÔøΩk∆òOg.JÔø 
ΩZÔøΩJ)z- 
r�Zo�W�gs�&lt;�o�Z��� 
ÔøΩÔøΩÔøΩÔøΩÔøΩxÔøΩÔøΩ|ÔøΩÔøΩÔøΩÔøΩ{Ô 
øΩzÔøΩqÔøΩÔøΩÔøΩyÔøΩÔøΩÔøΩÔøΩÔøΩÔøΩÔøΠ
©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ 
©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ 
©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ©√î√∏Œ 
©√î√∏Œ©- 
ÔøΩ3ÔøΩ…πÔøΩÔøΩ—∫ÔøΩÔøΩÔøΩÔøΩ◊æÔø 
Ωj;</binary></sampleResult>

--

Bertrand Rousseau