πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8465

Re: How can I read in file into a byte array?

#8465
From: Ben Matterson (Borland)
Date: Wed, 21 Mar 2001 19:24
36 lines
2263 bytes

Jim Gallagher wrote:

> I had a similar problem and I solved it with the following ugly
> kludge.

> byte[] b = new byte[1000000];  //1M= number of bytes in zip entry

Something similar occurred to me, but I felt that there *must* be a
more elegant solution. Maybe there just isn't. <shrug>

Ben
-- 
InterBase Technical Support
Borland Software Corp.

This e-mail, and any attachments thereto, is intended only for
use by the addressee(s) named herein and may contain legally
privileged and/or confidential information. If you are not the
intended recipient of this e-mail, you are hereby notified that
any  dissemination, distribution or copying of this e-mail, and
any attachments thereto, is strictly prohibited. If you have
received this e-mail in error, please immediately and permanently
delete the original and any copy of any e-mail and any printout
thereof.

Accelerate your LinuxοΏ½ application development with Kylix(TM),
the RAD tool for Linux. Easily integrate web, desktop and database
development to quickly deliver fast Linux applications. Kylix is
the only Linux development tool that combines the world's fastest
compiler with the most productive visual design environment for
GUI, web and database programming. Order your copy now!
http://www.borland.com/kylix/

Sorry about that.
Technical Details
Message-ID: <3AB8FFD8.EB457DA@borland.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!10.143.12.142
References: <3AB7BC0C.60473976@borland.com> <3AB7E088.1B05938B@earthlink.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,2ea00c6aa2f0fa5a
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-23 04:10:04 PST
Message-ID: <3AB8FFD8.EB457DA@borland.com>
Date: Wed, 21 Mar 2001 11:24:08 -0800
From: "Ben Matterson (Borland)" <bmatterson@borland.com>
Organization: Borland Software Corp
X-Mailer: Mozilla 4.7 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: How can I read in file into a byte array?
References: <3AB7BC0C.60473976@borland.com> <3AB7E088.1B05938B@earthlink.net>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 10.143.12.142
X-Trace: 21 Mar 2001 11:24:08 -0800, 10.143.12.142
Lines: 36
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!10.143.12.142