Join wMUsers | Blog at wMUsers | Edit my wMUsers Profile | Site Map | webMethods Jobs |For Employers

wMUsers  
  #1  
Old 01-30-2010, 02:02
alamir2020 alamir2020 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 20
Thanks: 2
Thanked 2 Times in 1 Post
Default xslt

Dear all

I am retriving a user information with his picture from a database.
My output field type of the picture is byte array.

What I want to do is to display the records with the pictures in a HTML file using XSLT.

Any advice ???

Thanks & Regards
Ameer
Reply With Quote
Advertisement
  #2  
Old 02-01-2010, 16:35
DevNull43 DevNull43 is offline
Senior Member
 
Join Date: Dec 2009
Posts: 330
Thanks: 5
Thanked 36 Times in 33 Posts
Default

You should store the picture to a file, jpg/gif etc. In the XSLT you generate the http tag to <image src="/path/file.jpg ......>

Or you can have a DSP to write byteArray as a strem, in the XSLT generate the html tag pointing to the dsp <image src="/path/to/page.dsp ....>

XSLT's do not work directly with byteArrays.

Hope I explained in a clear way
Reply With Quote
  #3  
Old 02-01-2010, 22:32
alamir2020 alamir2020 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 20
Thanks: 2
Thanked 2 Times in 1 Post
Default

Thanks for the explanation, but what am doing is I am enquiring information from oracle database and the images are stored as BLOB.
But I store these BLOB to a byte array, then I display the output as an XML. What I want to know how to display the bit array.
By the way, what is the DSP?

Thanks & Regards
Ameer
Reply With Quote
  #4  
Old 02-03-2010, 13:48
DevNull43 DevNull43 is offline
Senior Member
 
Join Date: Dec 2009
Posts: 330
Thanks: 5
Thanked 36 Times in 33 Posts
Default

DSP are Dynamic Server Pages, something "similar" to JSP's but with IntegrationServer syntax to work with flow/java services.

XML only deals with text, no object. But one XML tag can contain a base64 binary data, which is at the end the image in text format.

I assume you have a XML document, and one of the elements contains this binary data, then google around and search for:

"XSLT binary data"

You will find information and places on what to do.

Good luck
Reply With Quote
  #5  
Old 02-04-2010, 03:48
alamir2020 alamir2020 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 20
Thanks: 2
Thanked 2 Times in 1 Post
Default

Thanks dear
I'll google it
Reply With Quote
  #6  
Old 02-16-2010, 04:05
hido hido is offline
Junior Member
 
Join Date: Nov 2004
Posts: 22
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by alamir2020 View Post
Thanks dear
I'll google it
XSLT will allow you to "package" the binary data into another format, but I don't think you will be able to serve this data to a web client as an image without persisting it into a file first and referring the client to retrieve it through a URL.
I would like to know how you resolved this problem as a matter of interest. I would save the image into a file and insert the URL pointing to that file inside the HTML page you are generating using your XSLT stylesheet.
Reply With Quote
  #7  
Old 02-16-2010, 20:38
alamir2020 alamir2020 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 20
Thanks: 2
Thanked 2 Times in 1 Post
Default xslt issue solved

I solved the problem
My xml element type is base64Binary.
This is what I did using xslt:
<xsl:variable name="photo" select="Element/Photo"/>
<img src="data:image/jpg;base64,{$photo}" />
Regards
Ameer
Reply With Quote
The Following 2 Users Say Thank You to alamir2020 For This Useful Post:
mcarlson (02-19-2010), reamon (02-16-2010)
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xslt trim function amolwm Flow and Java services 1 08-12-2009 20:07
CentraSite contracts running on Layer7 - XSLT jjppatel SOA Governance (Infravio X-Broker) 0 02-24-2009 14:51
XSLT transform recursive depth error jimp Flow and Java services 0 06-14-2007 16:17
Mapping large XML files XSLT or nodeIterator Tomm Östlund (Unregistered Guest) Flow and Java services 4 10-04-2005 13:03
Transient XSLT error Armin Scherz (Unregistered Guest) Flow and Java services 4 09-08-2005 06:23


All times are GMT -6. The time now is 00:14.


.
All Content Copyright ©2002-2009, Conneva, Inc. DBA wMUsers.Com

wMUsers is an independent organization and is not sponsored in any manner by Software AG or webMethods, Inc.

Page generated in 0.08716 seconds with 18 queries