简体   繁体   中英

Decoding byte[] to string[][]

I am storing a string[][]-array into a database as a "blob". Loading the data, I initially get a byte[]-array, which I then need to decode to string[][] again.

So: Can anywone tell me if there is a way to convert a byte[]-array to a string[][]-array (on Android)? Or if there is a way to convert a byte[]-array to an ArrayList ?

I asked a similar question once, but the question was referring to blobs.

You would normally convert a byte array to a single blob - why would you want an array of blobs? Would you want a single blob per byte? That sounds unlikely.

Creating a single blob for an array of bytes is easy though... for example, with a PreparedStatement :

statement.setBlob(parameterIndex, bytes);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM