Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How to create a file format Shift-JIS in aem?

Avatar

Level 2
 
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hey, you can write an OSGi service that does the conversion of your files into the required format and you can consume this service in a Sling Servlet or Sling Model.

I find some code after here as an example in Java, check this: https://stackoverflow.com/questions/63706439/when-i-create-a-file-with-java-8-using-the-shift-jis-ch...

Also if you are new to AEM, more on OSGi services: https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/developing/osgi-servi... and Sling Models here: https://sling.apache.org/documentation/bundles/models.html

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hey, you can write an OSGi service that does the conversion of your files into the required format and you can consume this service in a Sling Servlet or Sling Model.

I find some code after here as an example in Java, check this: https://stackoverflow.com/questions/63706439/when-i-create-a-file-with-java-8-using-the-shift-jis-ch...

Also if you are new to AEM, more on OSGi services: https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/developing/osgi-servi... and Sling Models here: https://sling.apache.org/documentation/bundles/models.html