๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2211

Re: Object to Byte[].

#2211
From: Frajola
Date: Wed, 25 Apr 2001 22:47
42 lines
1894 bytes
Dear Mic,

Thanks for your help!

Please, help me more:
Think that I have a class
named "Person" and need
to transforme in byte[].

How can I do, perdon for
am stupid.

Tanks,  Frajola.

frajola@telemar.com.br
------------------------------------------------

Michael Rachow <mrachow@BeraCom.de> escreveu nas not๏ฟฝcias de
mensagem:3ae676ab_2@dnews...
> Hi Frajola,
> You can cast references stored as a general type only back to its
> original type or a type "between" the general and the original type.
>
> In your case if that Object had not been a Byte (array) before
> you can't cast it to this type.
> You have to transform it, e.g., create a Byte (array) from your Object
> explicitly.
> Mic
> "Frajola" <frajola@telemar.com.br> schrieb im Newsbeitrag
> news:3ae5bda9_2@dnews...
> > How can I casting of a Object to a Byte array?
> >
> > I have a class and need to transform in bytes array.
> >
> > Tanks.
> >
> > frajola@telemar.com.br
> >
> >
> >
>
>
Technical Details
Message-ID: <3ae7539a_1@dnews>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!sn-xit-01!supernews.com!grolier!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3ae5bda9_2@dnews> <3ae676ab_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1089d0,7177f458549000a1
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-04-25 16:48:06 PST
Reply-To: "Frajola" <frajola@telemar.com.br>
From: "Frajola" <frajola@telemar.com.br>
Newsgroups: borland.public.jbuilder.java.api
References: <3ae5bda9_2@dnews> <3ae676ab_2@dnews>
Subject: Re: Object to Byte[].
Date: Wed, 25 Apr 2001 19:47:03 -0300
Lines: 44
Organization: Telemar
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 200.222.3.3
Message-ID: <3ae7539a_1@dnews>
X-Trace: dnews 988238746 200.222.3.3 (25 Apr 2001 15:45:46 -0700)
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!sn-xit-01!supernews.com!grolier!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews