Neodynamic ImageDraw with Slide.Show

Jan 31, 2009 at 11:32 PM
Edited Feb 1, 2009 at 12:02 AM
I am trying to use the Neodynamic ImageDraw SDK along side Slide.Show2 so that I can add effects/watermarks/etc onto images on the fly, however I have run into an issue where Slide.Show will not display an image from an httphandler.  If I use the httphandler on the "thumbnail" I have no issues, this issue only arises when using the httphander as the "source".

The httphandler outputs the image as follows

context.Response.ContentType ="image/jpeg"
Feb 1, 2009 at 12:04 AM
Oh, and the httphandler is using querystring parameters... not sure if that might be the issue.
Feb 1, 2009 at 5:11 AM
Further to this issue, if I create an image handler without a querystring... it shows up in the Slide.Show just fine.  Where can I find in the Slide.Show the place where it gets the image file path, and how can I make it so that it can handle being passed a QueryString?

Thanks in advance
Feb 2, 2009 at 6:37 AM

have a look at 

static DataSourceType GetSourceType(Uri source)

in Data.cs.


Feb 2, 2009 at 2:21 PM
Thanks Olaf, I see it but I don't know how I would modify it in order to accomodate the querystring.

I ran another test yesterday and if I only pass ONE querystring parameter the image will load, but as soon as I pass a second parameter, it gets all balled up.

ImageDraw.jpg?image=SlideShow%2f_CAP0034.jpg                             Works
ImageDraw.jpg?image=SlideShow%2f_CAP0034.jpg&fx=reflect            Does NOT Work

Feb 3, 2009 at 7:06 AM
I bet


will work, too.

Feb 3, 2009 at 10:22 AM

What I found was that the "problem" is with the "&"... everything after the "&" is ignored... (Seems XML doesn't like the "&"...)

Feb 4, 2009 at 12:14 AM
wow.. intersting that this does work?  why would it be (out of curiosity)


"source", "ImageDraw.jpg?&fx=reflect&image=" & context.Server.UrlEncode(record.Path).ToString)                             WORKS
writer.WriteAttributeString("source", "ImageDraw.jpg?image=" & context.Server.UrlEncode(record.Path).ToString & "&fx=reflect")                       DOES NOT WORK


Feb 4, 2009 at 8:00 AM

Gayo, you're right: The "&" has to be replaced either with "&" or with "&", then the whole string is loaded.

What I tried to say with my previous post was that the ".jpg" has to be at the end of the string - only then the correct DataSourceType is determined.