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

  • Home
  • SEARCH
  • 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 8544981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:41:14+00:00 2026-06-11T12:41:14+00:00

MTOM is usually used to transfer image data over SOAP (attachments). The image is

  • 0

MTOM is usually used to transfer image data over SOAP (attachments). The image is mapped to a java.awt.Image (at least with CXF). Does the Image object consume a lot more memory than the actual image transferred? Let’s say a transferred JPEG is 10MB, how much more space will the Image object consume?

  • UPDATE –
    I’m not so sure it has anything to do with java.awt.Image at all. Focusing on CXF/MTOM more at the moment: http://cxf.547215.n5.nabble.com/MTOM-large-attachments-eating-up-JVM-heap-td5714196.html
  • 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-11T12:41:15+00:00Added an answer on June 11, 2026 at 12:41 pm

    Does the Image object consume a lot more memory than the actual image transferred?

    Typically yes. The idea of most of the file formats is to compress image data.

    Let’s say a transferred JPEG is 10MB, how much more space will the Image object consume?

    The RAM size depends on W * H * ‘pixel depth’. E.G. RGBA in 256 shades is 4 bytes per pixel. JPEG does not support alpha transparency, so it would be 3 bytes per pixel.


    For some idea of the effectiveness of JPEG compression efficiency at different levels, see this answer:

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

Sidebar

Related Questions

When using JAX-WS @MTOM to transfer a file, does it have a build-in file
Does Java XML Validation Support MTOM enabled Messages? The following error has been thrown
My customer asked me to implement MTOM/XOP for .NET Remoting via HTTP/SOAP for remote
I have created WCF and I have used wsHttpBinding and MTOM as message transport
Iam able to upload the image using MTOM-XOP by value concept.After that I tried
Is there any mechanism in ServiceStack services to return streaming/large binary data? WCF's MTOM
I have a temporary file with data that's returned as part of a SOAP
I have a soap web service exposed with axis2 (Java) which serializes POJOs, such
So i have this new Axis2 MTOM Webservice serving correctly to a java based
I was wondering if setting the maxReceivedMessageSize is necessary when using MTOM or does

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.