Image « API « Java I/O Q&A





1. Best practice for caching images read from an inputstream in Java    stackoverflow.com

I have a servlet that acts as a proxy for fetching images by reading the images as bytes off a HttpURLConnection input stream and then writing the bytes to the response ...

2. Java : compress image without fully load them    stackoverflow.com

I'm creating an applet that send pictures to a servlet. The applet first action is to resize and compress the picture. I'm using ImageIO to load the picture into a BufferedImage. Next ...

3. Unable to stream image from midlet to browser?    stackoverflow.com

My midlet acts as server , when i request any resource from midlet it must transferred to browser and displayed. Here i am able to transfer html files,but i am ...

4. Writing out BMP files with DataBuffer.TYPE_FLOAT or DataBuffer.TYPE_DOUBLE in java    stackoverflow.com

I had a problem working with the image classes in java. I am creating a buffered image with DataBuffer.TYPE_DOUBLE. This all works fine in memory (I think). But the problem starts when ...

5. Why doesn't Java properly re-create this image from an InputStream?    stackoverflow.com

I've looked at this every way I can think... The problem is that I end up writing the PERFECT number of bytes, and the files are VERY similar - but some ...

6. Java converting an image to an input stream WITHOUT creating a file    stackoverflow.com

For an applet I'm working on I need to convert a BufferedImage file to an input stream so that I can upload the image to my MySQL server. Originally I was ...

7. Java Combine multiple images into a single bigger image without overlapping    stackoverflow.com

I'm trying to combine several images into a larger image using Java. The images that are passed in are all height 127 x width 293. The idea is that a number ...

8. Stream the content of a scanned image to a file in Java    stackoverflow.com

I'm trying to scan an image and save it to a file given a specific format (Tiff or Jpeg) with a Swing application, using Morena and Sane. I load the whole image ...

9. converting byte stream into b/w image    bytes.com

i have a text file which has a byte stream as follows - 0B00000000 0B01010101 0B00100100 and so on . the ' 0B ' are the starting bits and then each ...





10. How to Convert OutputStream into Image?    coderanch.com

I m thro RMI saving one image to the server side.(reading and writing stream).Now I want to invoke that image on the client side to let him view it on a frame.But now the image is in file format.I d like to know about the createImage()or similar method that takes file as parameter.Thanks.For this application shall I go for servlets/JSP to ...

12. image output stream    coderanch.com

13. Image Stream    coderanch.com

Hi all, Sorry, dont know where to post this...I have a black and white png image. I was wanting to load the file, and then convert every pixel to binary (ie o for black and 1 for white) then put them into a 2D array, or file. Example... A picture of chess board section into 110011001100 110011001100 001100110011 001100110011 I tried ...

14. basic, I think: get InputStream from OutputStream for image    coderanch.com

This is probably pretty basic...just not sure what the right thing is. We've got some images that get generated on our web app, and we're going to try storing them in the database instead of on the webserver. I've got the BLOB stuff figured out with Oracle JDBC, but I'm looking at the point where we generate the image and write ...

15. Image Streaming    coderanch.com

While it's possible the solution requires Applets, I think it's more of an advanced question so I've posted it here instead of the Applets forum. I have written a Java application which captures a user-definable portion of the screen. Now what I would like to do is the following: I want to be able to display this image on the web ...

16. Streaming an image to a client    coderanch.com

Hi, I am having some trouble displaying an image that I have stored in a database to the user. I know the image is being properly stored and retrieved, but I'm unsure how to stream it to a client. Below is a sniplet of my code. blob = results.getBlob(1); InputStream stream = blob.getBinaryStream(); ServletOutputStream oStream = response.getOutputStream(); int i = 0; ...





17. Printing with Microsoft Office Document Image Writer messes up file references    coderanch.com

Hi there I have a MailFolder which has an ArrayList of Email objects inside it. Each MailFolder has an attribute called folderFile which is a reference to a folder in the operating system. Each Email has an attribute called parentFile which is a reference to a file in the operating system. Now, I am trying to put printing into my application. ...

18. Error reading image from InputStream    coderanch.com

Welcome to the JavaRanch. The only thing I can think of is that the data you are reading is not an image file. Try just writing the data to disk and opening it with an image viewer. Do you have control of the other side of the socket? How is the image written?

19. Determine file (image) type from an InputStream    coderanch.com

Hello ranchers....it's me again Ok, my previous post was about extracting images from an Excel file and then writing them to disk, which I can now do with no problems...except when the image inserted in the Excel file is not supported by Java. In this situation I can't use the ImageIO.write function because the image type is not known. Does anyone ...

20. Streaming an image byte by byte (and similtaneosly rendering it on screen)    java-forums.org

Hi, my first post here. I'm new to Java gui. I am trying to create an applet that loads a big image file (>10000kb) from a url and simultaneously paints it on the screen bit by bit (before it is entirely loaded). In other words, the effect I want is the same as when loading a huge image file from a ...

21. Simple Java image stream display    java-forums.org

I tried something similiar to what you are proposing (sequenced images) but, there would eventually be a conflict between the two programs. Now that I think of it I had them running at different speeds for example the vb was updating every 300ms while the java was 500ms... which would eventually give me a conflict no matter what... Hrmm thank you ...

22. Streaming an image file (and rendering simultaneously)    forums.oracle.com

Hi, my first post here. I'm new to Java gui. I am trying to create an applet that loads a big image file (>10000kb) from a url and simultaneously paints it on the screen bit by bit (before it is entirely loaded). In other words, the effect I want is the same as when loading a huge image file from a ...

23. How to draw border for an image input stream ?    forums.oracle.com

If you have an input stream, and you know for a fact that that stream contains image data, then you could write a wrapper that takes that stream, use ImageIO to turn it into an image, process the image, and then use ImageIO again to produce an output stream. It would probably need to read the whole image in to do ...

24. Forming an image from a ByteBuffer    forums.oracle.com

25. Create a JPEG stream with an Image without a file.    forums.oracle.com

Hello ! I am actually working on a webcam recorder in Java, so I have to create a file which will be my video. I decided first to work with 25 frames/second, to write the first frame in JPEG on my file, and for the next 24 frames to write only the difference between the previous image and the new image ...

27. image input stream problem    forums.oracle.com

Hi all I am getting the response from the url as inputstream.ie., InputStream is=urlconnection.getInputStream(); which is a bytes of images.i could able to write it to file in system and write it to browser.but problem is i want to save it in to DB and retrive it for DB to display in jsp page. Please help me to save and retrieve ...

28. Inputstream vs file to grab an image    forums.oracle.com

I want to read in an image from a file. It seems like I will get the same result by using either one of these two methods. What's the difference? Does the inputstream have any advantages? I will be reading several images one after the other. Which method should I use? //Method 1. Reading from the file. File sourceimage = new ...

29. Byte Stream To image conversion    forums.oracle.com

I vote "converting" to be the most abused word on this board. "How do I convert a water pipe into a soup?" What does the byte stream contain? And did you look at ImageIO? And JSPs being Servlets and Servlets being Java classes: they don't display images. They might stream them out, or might embed an img tag in the HTML ...

30. inputstream to image object    forums.oracle.com

31. retrieve image from input stream    forums.oracle.com

hi, how can i retrieve image from input stream. I am getting: tel:070123456789 tel:07123456789 GIF89a > pHl+Ut <`Cf 2X! , > I8`xIbih>prm"|',Cr9b:$tK@KJc,8PtQ B_ p|q  4hk :l: c*XY, n {| YmC;`!cI|PZ r= 1F r`Z_q 0oPC4AP@ 08a>H` o Z :-o4`2WH X3`Uu@K d A *d+@lvC69UWY"aB8} Zc,tH(:00x4Hvl08AH( XL ...

33. Problem reading image from input Stream    forums.oracle.com

34. Image streaming problem    forums.oracle.com

ObjectOutputStream stream=new ObjectOutputStream(sImage.getOutputStream()); PixelGrabber grabber = new PixelGrabber(im, 0,0, -1, -1, true); try { grabber.grabPixels(); // methode booleene - on demande les pixels } catch (InterruptedException e) { e.printStackTrace(); } Object pix = grabber.getPixels(); // on recupere les pixels Dimension dim = new Dimension(((BufferedImage)im).getWidth(),((BufferedImage)im).getHeight()); // on recupere les dimensions de l'image stream.writeObject(dim); // on envoye les dimensions stream.writeObject(pix); // on envoye ...

35. Resize images from a stream    forums.oracle.com

Is it possible to resize and image from a stream rather than a file? I have a servlet that accepts an uploaded file as a series of bytes in a stream, then places it on the filesystem. In order to resize this image, I see there being two choices: work with the file after it has been fully uploaded to the ...

36. How to get InputStream from an Image object?    forums.oracle.com