How to create a file format Shift-JIS in aem? | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
B_Sravan
B_SravanAccepted solution
New Participant
Jun 11, 2023 7:02 PM UTC

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

1 reply

B_Sravan
B_SravanAccepted solution
New Participant
Jun 11, 2023 7:02 PM UTC

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

Translate