🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to transfer a BufferedImage with Java Jini?

#238
From: Kevin Dean [TeamB]
Date: Fri, 03 Mar 2006 12:41
33 lines
2156 bytes
Daniel Mark wrote:

>I would like to design a java application as follows:
>
>1> The java application will call a DLL written in c++ to process an image
>2> Then return the processed image back to the java application.
>
>
>What is the good way to transfer the image using Java Jini?

If the Java side and the C++ side can agree on the format (e.g. the image 
will always be a GIF) then you can simply convert the image to an array of 
bytes and pass it back and forth that way.  If the format is variable, add 
another parameter to the method indicating the format.  For example:

public native byte[] processImage(byte[] image);

or

public native byte[] processImage(String format, byte[] image);

-- 
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <xn0ejabs13n1ds000-kdean@www.teamb.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4407ddb2$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,afd200af83564545
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com>
Subject: Re: How to transfer a BufferedImage with Java Jini?
Newsgroups: borland.public.jbuilder.java.language
References:  <4407ddb2$1@newsgroups.borland.com>
Organization: Dolphin Data Development Ltd.
User-Agent: XanaNews/1.17.6.6
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobrp]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
Message-ID: <xn0ejabs13n1ds000-kdean@www.teamb.com>
X-Ref: newsgroups.borland.com ~XNS:00000505
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
NNTP-Posting-Host: 70.27.198.51
Date: 3 Mar 2006 05:41:02 -0700
X-Trace: newsgroups.borland.com 1141393262 70.27.198.51 (3 Mar 2006 05:41:02 -0700)
Lines: 33
X-Authenticated-User: kdean
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail