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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:45:12+00:00 2026-06-06T11:45:12+00:00

I have a byte[] that i obtained using Object ArrayList<Obj> Can anyone tell me

  • 0

I have a byte[] that i obtained using Object ArrayList<Obj>

Can anyone tell me how to convert my byte[] to Object ArrayList?

Coveting ArrayList like this:

ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos = null;
oos = new ObjectOutputStream(bos);
 
oos.writeObject(mArrayList);//mArrayList is the array to convert
byte[] buff = bos.toByteArray();
  • 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-06T11:45:14+00:00Added an answer on June 6, 2026 at 11:45 am

    Now you’ve given us the information about how you did the conversion one way… you need:

    ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(bytes));
    try {
        @SuppressWarnings("unchecked")
        ArrayList<Object> list = (ArrayList<Object>) ois.readObject();
        ...
    } finally {
        ois.close();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list of recipes obtained from a database that looks like this:
I have byte array as input. I would like to convert that array to
I have an SHA-1 byte array that I would like to use in a
I have a web service that takes a byte[] and saves it. This works
I have some MSIL in byte format (result of reflection's GetMethodBody()) that I'd like
I have a char byte that I want to convert to an int. Basically
I have a problem that can basically be summirized as: Byte[] barr = new
This is sort of an odd request. I have a byte array that I
I have a byte array that can be of size 2,3 or 4. I
I have a byte[] that represents a .png file. I am downloading this .png

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.