aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Sending an image on network.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Sending an image on network.." Watch "Sending an image on network.." New topic
Author

Sending an image on network..

Kutub Shaikh
Greenhorn

Joined: Apr 04, 2005
Posts: 13
I want to get some idea on how to transfer an image on network, like encoding and decoding..

Thanx in advance


The Man With The Golden Gun...
Reza Ravasizadeh
Ranch Hand

Joined: Jun 08, 2004
Posts: 177
I'm not sure if it is possible or not but you should make an object that implement serializable(able to travel throught the wires) and the fastet way is to send it via java socket.


Reza
Ko Wey
Ranch Hand

Joined: Sep 08, 2003
Posts: 67

I'm not sure if it is possible or not but you should make an object that implement serializable(able to travel throught the wires) and the fastet way is to send it via java socket.


And the object must NOT extend Image because that one is not serializable...
Ko Wey
Ranch Hand

Joined: Sep 08, 2003
Posts: 67
By the way, if I want to save an image by "serialization", I store (and retrieve) the data from the image in an instance of this class. Not the sharpest tool int the box, but it serves me well! I hope you can use this.


Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Gosh, hasn't any one heard about ImageIO?


There is no emoticon for what I am feeling!
Ko Wey
Ranch Hand

Joined: Sep 08, 2003
Posts: 67
ImageIO of course!!!

this program reads an image from file("test.jpg"),
then sends it to yourself(localhost) .... ends receives it and shows it!

so make an image "test.jpg", save in working directory,
compile ImagePost.java and run,
it should work!



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending an image on network..