Data Provider remote server and djvu file

Apr 3, 2009 at 8:51 AM
Hello,

First of all you are doing an excellent job.
I want to use 2.0 slideshow with images that are on a remote server and are distributed by a server image of LizardTech Express Server.

Express server distributes files in initial format djvu to web applications with a resolution on demand.See the following example:
http://213.246.214.227/lizardtech/iserv/getimage?cat=Bruxellensis&item=/lp_b40_0008_b.djvu&wid=400&hei=400&method=scale

The client browser receives a file server express. Jpeg or. Png. This technique allows you to view HD files quickly.

My problems are:
How to connect to a remote server?
How to interpret the URL in the tag <slide> "source" and "thumbnail" data.xml file and resolve the problem of & (ampersand) reserved code in xml?
Should I set the mimeType on IIS 7?

It is a somewhat special request but if it works it could open up opportunities for development (project of a small library).

Thank you in advance

Christian
Apr 6, 2009 at 6:52 AM
Hi,

there are two things you have to do:
1. Replace the "&" with "&amp;" :

<

 

album title="Test" description="Test" source="http://213.246.214.227/lizardtech/iserv/getimage?cat=Bruxellensis&amp;item=/lp_b40_0008_b.djvu&amp;wid=40&amp;hei=40&amp;method=scale">

 

<

 

slide title="Test" description="Test-Bild" source="http://213.246.214.227/lizardtech/iserv/getimage?cat=Bruxellensis&amp;item=/lp_b40_0008_b.djvu&amp;wid=400&amp;hei=400&amp;method=scale" thumbnail="http://213.246.214.227/lizardtech/iserv/getimage?cat=Bruxellensis&amp;item=/lp_b40_0008_b.djvu&amp;wid=40&amp;hei=40&amp;method=scale" />

 

</

 

album>

 

2. Modify public static DataSourceType GetSourceType(Uri source) in file Data\Data.cs:
The var "ext" will now contain something like ".djvu&wid=40&hei=40&method=scale", so you can replace the default return value 

return DataSourceType.Unknown;

 

 

with
return DataSourceType.Image;

 

Then your Express server images will work.

Olaf
Apr 6, 2009 at 2:04 PM
Hi olaf,
many thanks for the tips
It works fine
Christian


From: olafb [mailto:notifications@codeplex.com]
To: christian@dmbel.com
Sent: Mon, 06 Apr 2009 08:52:59 +0200
Subject: Re: Data Provider remote server and djvu file [SlideShow2:52156]

From: olafb

Hi,

there are two things you have to do:
1. Replace the "&" with "&" :

<

album title="Test" description="Test" source="http://213.246.214.227/lizardtech/iserv/getimage?cat=Bruxellensis&item=/lp_b40_0008_b.djvu&wid=40&hei=40&method=scale">

<

slide title="Test" description="Test-Bild" source="http://213.246.214.227/lizardtech/iserv/getimage?cat=Bruxellensis&item=/lp_b40_0008_b.djvu&wid=400&hei=400&method=scale" thumbnail="http://213.246.214.227/lizardtech/iserv/getimage?cat=Bruxellensis&item=/lp_b40_0008_b.djvu&wid=40&hei=40&method=scale" />

</

album>

2. Modify public static DataSourceType GetSourceType(Uri source) in file Data\Data.cs:
The var "ext" will now contain something like ".djvu&wid=40&hei=40&method=scale", so you can replace the default return value

return DataSourceType.Unknown;

with
return DataSourceType.Image;

Then your Express server images will work.

Olaf
Apr 6, 2009 at 2:41 PM
Hi Olaf,

many thanks for your tips
We have tried and the page page is  functioning very well.
When the project is finalized  i sen d you the URL

Best regards

Christian