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 8923147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:02:45+00:00 2026-06-15T07:02:45+00:00

Is it possible to get a byte array of an image stored in Tridion

  • 0

Is it possible to get a byte array of an image stored in Tridion using the Anguilla JavaScript API? I would like to display an image in a GUI extension popup window.

  • 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-15T07:02:45+00:00Added an answer on June 15, 2026 at 7:02 am

    The easiest way I can think of is by simply loading the MMC using a URL like this:

    http://<hostname>/WebUI/Editors/CME/icon.png?uri=tcm:2-1151
    

    If you use that approach the actual loading of the bytes has nothing to do with Tridion anymore: you’re just loading an image from a URL.

    You’ll probably want to construct the URL in JavaScript, so start with something like this (which I shamelessly copied from the source code):

    p.multimediaUrl = $display.getMultimediaHandlerPath() + "?uri={0}";
    

    Update

    As usual the Mozilla Developer Connection has a great example on loading binary data with XMLHttpRequest. Applied to this situation, I seem to get the data with this snippet:

    var arraybuffer;
    var xhr = new XMLHttpRequest();
    xhr.open("GET", $display.getMultimediaHandlerPath() + '?uri==tcm%3A2-1151', true);
    xhr.responseType = "arraybuffer"; 
    xhr.onload = function(e) {
      arraybuffer = xhr.response; // not responseText
    }
    xhr.send();    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to get a byte[] from a float[] as quickly as possible,
Possible Duplicate: Get the resolution of a jpeg image using C# and the .NET
Is it possible to get specific bytes from a byte array in java? I
Is it possible to get filename from the byte array or stream? I wont
Possible Duplicate: Convert a image to a monochrome byte array I have a monochrome
Possible Duplicate: Get variable name. javascript “reflection” Is there a way to know the
Possible Duplicate: Get the IP Address of local computer Obtaining local IP address using
Possible Duplicate: What's the best way to display an image from a sql server
I am wondering if it is possible to get a url to some image
my problem is that I send to external device byte array like this: byte[]

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.