Transformar array de byte em file




















Add a comment. Try this: Files. Evgeniy Dorofeev Evgeniy Dorofeev k 27 27 gold badges silver badges bronze badges. A simple program that will write a byte[] into a file. File; import java. About 10 minutes before you posted this, the OP posted a comment explaining that this was not what he wanted.

The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked Related Hot Network Questions. Stack Overflow works best with JavaScript enabled.

Accept all cookies Customize settings. What could be the reason? Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 11 years, 10 months ago. Active 11 years, 10 months ago.

Viewed 19k times. Read buffer, 0, buffer. Length ; memoryStream. Write buffer, 0, responseStream. ToArray ; System. Create ; binaryWriter. Write memoryBuffer ;. Community Bot 1 1 1 silver badge. Gopi Gopi 5, 20 20 gold badges 71 71 silver badges bronze badges. Where does this byte[] come from? What exactly does it represent? Active 9 years, 3 months ago. Viewed 31k times. I want to be able to display the image in a label like below: jLabel.

Possible duplicate of stackoverflow. My guess is that your input data is incorrect. Please show how you've obtained the data. Have a look here: stackoverflow. Add a comment. Active Oldest Votes. Matt Matt 5 5 silver badges 14 14 bronze badges. Jon Skeet, I get the byte[] from a web service. I send the User ID and fingerprint to the web service where the image is stored, so If they are correct I get the byte[] back.

Sure, but it is generally the browser rather than Java that turns the byte[] back to an image, so I can't see your answer as being relevant. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.



0コメント

  • 1000 / 1000