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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T13:57:17+00:00 2026-05-16T13:57:17+00:00

i has a BufferedImage instance: (only a example) BufferedImage image = ImageIO.read(new URL(http://www.google.com/intl/en_ALL/images/srpr/logo1w.png)); now,i

  • 0

i has a BufferedImage instance: (only a example)

BufferedImage image = ImageIO.read(new URL("http://www.google.com/intl/en_ALL/images/srpr/logo1w.png"));

now,i only know use

ImageIO.write(image,"jpg", file); //or ImageIO.write(image,"png", file);

to save this BufferedImage to a file, but this file is ZIPed,not equal original image size.

can I get original image ByteArray or OutputStream from BufferedImage instance?

  • 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-05-16T13:57:17+00:00Added an answer on May 16, 2026 at 1:57 pm

    In short : no.

    Java converts the images to an internal representation and converts the files on reading and writing.

    Your best bet will be to read the files in a byte array (or to a temporary file), create the image from there. and when saving the file, go back to the original bytearray or tempfile.

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

Sidebar

Related Questions

BufferedImage has a getSubimage(x, y, width, height) method that returns an Image. I am
like this gif image it has transparent background, when i using ImageIO.write(image,jpg, file) to
Has anyone succeeded in configuring ADFS2 to use Live Id (or Google, Yahoo etc)
I have a collection of BufferedImage instances, one main image and some subimages created
I have a sprite sheet which has each image centered in a 32x32 cell.
I have a BufferedImage that I get that has an IndexColorModel. I then wish
I have created a graphical image with the following sample code. BufferedImage bi =
So in a BufferedImage , you receive a single integer that has the RGB
I'd like to composite a few images together. Each image has some transparency to
I'm making a program that has an image that you scroll around on, and

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.