🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.language
3 messages
3 total messages Started by Daniel Mark Fri, 03 Mar 2006 06:09
How to transfer a BufferedImage with Java Jini?
#237
Author: Daniel Mark
Date: Fri, 03 Mar 2006 06:09
12 lines
1127 bytes
Hello all:

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?


Thank you
Re: How to transfer a BufferedImage with Java Jini?
#238
Author: 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
Re: How to transfer a BufferedImage with Java Jini?
#239
Author: Daniel Mark
Date: Fri, 03 Mar 2006 15:32
26 lines
1377 bytes
I should say Java JNI


Thank you
-Daniel





"Daniel Mark" <daneilmarkhot@hotmail.com> wrote in message 
news:4407ddb2$1@newsgroups.borland.com...
> Hello all:
>
> 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?
>
>
> Thank you
>
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads