Search:

Type: Posts; User: copeg

Search: Search took 0.15 seconds.

  1. Replies
    11
    Views
    1,142

    Re: Using FileOutputStream to save array of bytes

    As norm pointed out, using the toString() method of array will use the default toString() method - see Object (Java Platform SE 7 )
    Loop over the array and write each value as a String using the...
  2. Replies
    11
    Views
    1,142

    Re: Using FileOutputStream to save array of bytes

    The data is being saved as binary - try writing in text form (eg convert the byte to a String). As suggested in the API for FileOutputStream:
  3. Replies
    11
    Views
    1,142

    Re: Using FileOutputStream to save array of bytes

    It is unclear, at least to me, how you 'see' the file contents. Do you display the file contents elsewhere? How are you reading the file? How do you know this is a writing problem rather than a...
Results 1 to 3 of 3