Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

MIME type in XDP

Avatar

Level 3

Hi ,

I found on another forum that we need to change the MIME type From .xdp to application/vnd.adobe.xdp+xml

Does anyone know if that's still work?

And other question how do you change a MIME type ?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 4

Why do you feel the need to do that?

What problem do you have or what do you want to do that makes you think you have change the Mime type of the file?

View solution in original post

9 Replies

Avatar

Correct answer by
Level 4

Why do you feel the need to do that?

What problem do you have or what do you want to do that makes you think you have change the Mime type of the file?

Avatar

Level 3

I would like to be able to open my XDP file into a IE browser without using LC forms and I still struggling to find the way to open my page xdp on the client side. I found this alternative into a forum and I was wondering if someone knew about it

Thanks

Avatar

Level 4

That is a 2 way stick.

The why you should change the Mime type is that the associations File Type --> application in most OS is done by Mime type.

But, this also means that a end-user migth create the association of your Mime type to LC:Designer and puft, your system failed.

Apart from randomizing the Mime type of the file when you send it in the HTTP Response object you'll never be sure it is working properly, and even then its a best efford aproach at its best.

I'm at all not for trying to control the UI you're not supposed to control (Browser, Reader, and so on), but to do it its very simple. When you set up the HTTP header in the HTTP Response object (in Java, in other languages i don't know how its called but it should be similar) you should set (among other sings) the name of the file, the size of the file and most importantly the content type (this is here you put the mime type of your file).

This is extra Livecycle. This is the responsability of the web application your're using.

An example of setting headers:

response.setContentType("application/pdf"); //<-------------------mime type goes here
response.setHeader("Content-disposition", "inline; filename=myPDFFile.pdf");
response.setHeader("Content-Length", "" + bytes.length);

This can cause more hard than good, if you're using a framework you might even not be able to do this if you're not savvy enough in the framework you're using. But that is a question you should put to the community of the tech you're using to build your web app.

Edit: XDP is plain text (like XML, its a markup language).

Avatar

Level 3

I understand but I feel like I don't have the choice

I can't find a way to open my XDP in my ASP.NET application

by another way. If you know another way to open it please tell me because it's begin

to be a real nightmare for me .

Thanks

Avatar

Level 4

I haven't dwelled in the kingdom of Microsoftian tech for a while so i'm not able to help you there, but if you ask how to send a XML or plain text file to a site (elaborate here on exactly what you want to do) in a asp.net community forum you'll probably get some good solutions.

And a XDP file can be manipulated just like a XML or plain text file.

Avatar

Level 3

Last question

Do you know if there are an ASP.NET section in this forum ? because I have put some other questions on other forum and nobody answer

here there are a lot of really helpful people so I would liketo stay around.

Thanks for all your help

Avatar

Level 4

I think not.

This forums are focused on Adobe tech, and while there are users that are savvy in other techs, you might not find help for specific questions that don't relate to Adobe tech here.

Avatar

Level 3

And you have more experience than me do you know by any chance a good forum for me to make a post.

Avatar

Level 4

I'm really out of touch with Microsoft stuff, but try the MSDN forums --> http://social.msdn.microsoft.com/forums/en-US/categories/