This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Saving Byte Array into File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Saving Byte Array into File " Watch "Saving Byte Array into File " New topic
Author

Saving Byte Array into File

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I am trying to write a program that would convert a byte array into a file. Any suggestion of samples would be appreciated
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Use FileOutputStream.write(byte[]).


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Saving Byte Array into File
 
Similar Threads
InputStream into byte array
How I get byte[ ] from Object?
byte array to bits
Mail API content type
sending pdf files to IBM MQ