Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

writing byte array into a file  RSS feed

 
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: 24217
38
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!