Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9141345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:37:58+00:00 2026-06-17T09:37:58+00:00

This is an extension of my earlier question . When we export a SSJS

  • 0

This is an extension of my earlier question. When we export a SSJS library to DXL we get output which contains this:

<item name="$ServerJavaScriptLibrary" sign="true">
<rawitemdata type="1">
....ENCODED SSJS....
</rawitemdata>
</item>

I previously thought that the encoding scheme used here is Base64. But after trying unsuccessfuly to import SSJS library I think it is not. While searching I found that the type="1" refers to TYPE_COMPOSITE while type="14” refers to Base64 (please correct me if I am wrong on this one). I tried to use type="14" in my XML fil, put Base64 encoded code in rawitemdata tag and then tried to import the file. It created SSJS library in the database but its content was blank.

I found this link where it is importing a Theme by encoding it in Base64 but it prepends the encoded string by “YQAYAAAAAAA6AAAAAQAAAAAAAAAAAAAAYABMAAAAOgA6AAAAAAAAAAAA”. I tried to prepend it in my encoded SSJS code and then import it but still unsuccessful.

Which encoding scheme should be used so that I can import the SSJS code in my database?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:37:58+00:00Added an answer on June 17, 2026 at 9:37 am

    A SSJS library is stored in richtext records. The encoded string before the data of the SSJS library is the base64 encoded header information these records.

    Here you can find a working example how to encapsulate and import a SSJS library with DXL into a Database:
    Quick-n-Dirty: Import SSJS libraries with DXL

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is an extension to a question which I asked some time ago. I
This is an extension of an earlier question. I realized, what I really want
Note: This is an extension of an earlier question I asked here: Do additional
Note: This is an extension of an earlier question I asked here: Do additional
This is an extension to the question I asked earlier - XSLT 1.0 Grouping
This is extension of my earlier question . I'm going to create custom request
I have asked this question earlier, please click here ! this is extension to
This question is an extension of a question I asked earlier: Python Delegate Pattern
I know that this question was asked earlier but the OP didn't get any
this is an extension to my previous post today which can be found here:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.