Hi Torsten,

You can specify the extension (.xds) of the file in the
FileResourceProvider#createFile() method.

The DownloadManger#showDocument() will then convert the File to URL.

I hope this helps.

Thanks and regards,

Janak


>-----Original Message-----
>From: Hofmann, Torsten [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, October 25, 2006 3:22 PM
>To: Rolf Pfenninger
>Subject: AW: [ULC-developer] showDocument without defined contenttype
>
>
>Hello
>
>This is ok so, but how and where have i to adapt this
>("/download/filename.xds")
>
>Regards
>
>
>Torsten Hofmann
>Dipl. - Informatiker (FH)
>IT Consultant Business Integration
>
>Würth Phoenix GmbH
>Drillberg 6
>D-97980 Bad Mergentheim
>
>Phone: +49 7931 91 6284
>Fax: +49 7931 91 7284
>E-Mail: [EMAIL PROTECTED]
>Website: www.wuerth-phoenix.de
>
>
>-----Ursprüngliche Nachricht-----
>Von: Rolf Pfenninger [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 25. Oktober 2006 11:30
>An: [email protected]; Hofmann, Torsten
>Betreff: RE: [ULC-developer] showDocument without defined contenttype
>
>Hi Torsten
>
>The content type is needed to determine the associated program on
>the client
>(e.g., the PdfFileProvider and PdfMemoryProvider set the mime type to
>"application/pdf").
>
>If you want the client to determine the correct program based on the file
>extension you can provide "application/octet-stream" as a mime-type. Note
>however that the mechanism of the community contribution always uses
>/download?id=... as a URL to fetch the file (without specifying any file
>extension). You would need to adapt this to something like
>/download/filename.xyz .
>
>Does this answer your question?
>
>Cheers
>Rolf
>
>**************************************
>Rolf Pfenninger
>Canoo Engineering AG
>Kirschgartenstrasse 7
>CH-4051 Basel
>Tel +41 61 228 9444
>Fax +41 61 228 9449
>mailto:[EMAIL PROTECTED]
>http://www.canoo.com
>
>ULC - Rich Clients for J2EE
>http://www.canoo.com/ulc
>**************************************
>
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Hofmann, Torsten
>Sent: Dienstag, 24. Oktober 2006 13:41
>To: [email protected]
>Subject: [ULC-developer] showDocument without defined contenttype
>
>
>Hello
>
>I want to show a server document on client side and for this i
>want to open the
>associated editor/programm(client) for this file on  the client.
>Which content
>type do i have to set for this. I use the FileResourceProvider from the
>community.
>
>Regards
>
>Torsten Hofmann
>Dipl. - Informatiker (FH)
>IT Consultant Business Integration
>
>Würth Phoenix GmbH
>Drillberg 6
>D-97980 Bad Mergentheim
>
>Phone: +49 7931 91 6284
>Fax: +49 7931 91 7284
>E-Mail: [EMAIL PROTECTED]
>Website: www.wuerth-phoenix.de
>
>_______________________________________________
>ULC-developer mailing list
>[email protected]
>http://lists.canoo.com/mailman/listinfo/ulc-developer
>

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to