Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.
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