0

Is it possible to convert a custom ArrayList to an to byte array? And if so how would I do that.

ResultSet rs = st.executeQuery(clientQuery);
            MovieTableBean mTB;

            ArrayList<MovieTableBean> moviesList = new ArrayList<>();
            while (rs.next()) {
                mTB = new  MovieTableBean(rs.getInt("movieId"),
                        rs.getString("movieName"),
                        rs.getString("description"),
                        rs.getInt("genreId"));
                moviesList.add(mTB);
            }

How can I convert

ArrayList<MovieTableBean>

to an array of bytes?

I could not find any other questions that answered this, if you know of one please comment the link. Thanks.

Mat Black
  • 13
  • 6

0 Answers0