• Post Reply Bookmark Topic Watch Topic
  • New Topic

writing byte array into a file

 
Parameswaran Thangavel
Ranch Hand
Posts: 485
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am storing a XML file as byte array in DB and retrieving it as byte array itself. when i print that byte arrray in console by creating an equivalent String object things worked fine.

But at the same time when i tried to store that byte array in File. its not get stored. Any idea where the problem exist or is there any other way to write the byte array into the file.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following will definitely work:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!