🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem :Receiving an empty file with ObjectOutputStream

#8353
From: Jon Skeet
Date: Mon, 26 Mar 2001 09:58
13 lines
1797 bytes
Laurent Souriau <lsouriau@club-internet.fr> wrote:
> I encounter a problem whose solution can be simple (I hope) :
> 
> I have a Java Server and a Java client .
> I want to send a file (a result of a SQL query) from the server to the
> client.

You need to read the file itself and send that data - just serialising 
the File object merely tells the other end what the filename was.

-- 
Jon Skeet - skeet@pobox.com
http://www.pobox.com/~skeet
Technical Details
Message-ID: <MPG.1529232d4946e4ff989ffc@10.1.1.51>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!join.news.pipex.net!pipex!grot.news.pipex.net!pipex!burn.news.pipex.net!pipex!drip.news.pipex.net!pipex!drop.news.uk.uu.net!eyre.news.uk.uu.net!tube.news.pipex.net!pipex!news.peramon.com!10.1.3.5
References: <99n1an$6n1$1@s1.read.news.oleane.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d386,c5c03ccb4c917ff2
X-Google-Attributes: gid10d386,public
X-Google-Thread: f74b3,c5c03ccb4c917ff2
X-Google-Attributes: gidf74b3,public
X-Google-Thread: f631b,c5c03ccb4c917ff2
X-Google-Attributes: gidf631b,public
X-Google-Thread: 10a146,c5c03ccb4c917ff2
X-Google-Attributes: gid10a146,public
X-Google-ArrivalTime: 2001-03-26 02:00:03 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!join.news.pipex.net!pipex!grot.news.pipex.net!pipex!burn.news.pipex.net!pipex!drip.news.pipex.net!pipex!drop.news.uk.uu.net!eyre.news.uk.uu.net!tube.news.pipex.net!pipex!news.peramon.com!10.1.3.5
From: Jon Skeet <skeet@pobox.com>
Newsgroups: borland.public.jbuilder.java.language,comp.compilers.tools.javacc,comp.lang.java.programmer,fr.comp.lang.java
Subject: Re: Problem :Receiving an empty file with ObjectOutputStream
Date: Mon, 26 Mar 2001 10:58:45 +0100
Organization: Peramon Technology Ltd.
Lines: 13
Message-ID: <MPG.1529232d4946e4ff989ffc@10.1.1.51>
References: <99n1an$6n1$1@s1.read.news.oleane.net>
NNTP-Posting-Host: fw1.peramon.com
X-Trace: soap.pipex.net 985600739 6924 193.132.195.113 (26 Mar 2001 09:58:59 GMT)
X-Complaints-To: abuse@uk.uu.net
NNTP-Posting-Date: 26 Mar 2001 09:58:59 GMT
X-Newsreader: MicroPlanet Gravity v2.30