Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

from bufferedimage to inputstream

Thread view: 
pete leg - 22 Nov 2006 14:56 GMT
hi all, i'm a newbye and i need some help.
i have to convert a bufferedimage object into an inputstream one
(without passing through a file).
i found someone advicing to use imageio.read and imageio.write to do
this... but i can't understand how :(
please, can someone post an example?
thanx in advance
pete
Daniel Pitts - 22 Nov 2006 16:41 GMT
> hi all, i'm a newbye and i need some help.
> i have to convert a bufferedimage object into an inputstream one
[quoted text clipped - 4 lines]
> thanx in advance
> pete

Perhaps you should give us the context of what you are trying to do, as
it isn't trivial to "convert" (as you put it) a BufferedImage object to
an InputStream.

If you are trying to do something such as save the image somewhere, or
upload it somewhere, or read the bytes for some reason, those all would
have a different approach.  You're ultimate goal is more important than
the way you get there.  It's good to say "I'm trying this approach, but
I can't figure out how.  Is there a better way, or if not, how do I get
this way to work."

As for examples, there are plenty on Google.
pete leg - 23 Nov 2006 07:15 GMT
ok, thanx for the explanation.
i'm trying to send a screenshot to my ftp on a system where i don't
have permission to access the hard drives.

i know that google can help me search for examples, i've already tried
with no success... i found some thread suggesting to use imageio.read
and .write, but i can't figure out how.
thanx again
pete


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.