Results 1 to 4 of 4
Thread: Error?
- 11-03-2009, 03:23 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 56
- Rep Power
- 0
Error?
What does this error mean:
This is the code:Java Code:C:\server>javac image.java image.java:199: cannot find symbol symbol : method write(java.awt.image.BufferedImage) location: class java.io.OutputStream outs.write(bimg);
note that bimg is a bufferedImage.Java Code:URL u = new URL("http://localhost/image/handle.php"); HttpURLConnection outt = (HttpURLConnection) u.openConnection(); outt.setRequestMethod("POST"); outt.setDoOutput(true); outt.setDoInput(true); outt.setRequestProperty("Content-Type", "image/png"); //outt.setRequestProperty("Content-Length", Integer.toString(bimg.length)); outt.connect(); OutputStream outs = outt.getOutputStream(); outs.write(bimg); outs.flush(); outs.close();
- 11-03-2009, 03:31 PM #2
C:\server>javac image.java
image.java:199: cannot find symbol
Something wasn't found at line 199 in class image.
symbol : method write(java.awt.image.BufferedImage)
The method write(java.awt.image.BufferedImage) wasn't found in class:
location: class java.io.OutputStream
Offending code:
outs.write(bimg);
So there is no method OutputStream.write(java.awt.image.BufferedImage)Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 11-03-2009, 03:36 PM #3
Member
- Join Date
- Oct 2009
- Posts
- 56
- Rep Power
- 0
outs.write(bimg); is line 199. So there is the problem, but the problem isn't that there is no OutputStream.write(java.awt.image.BufferedImage) because outs.write(bimg) is that! So there is something wrong with it? But I don't know what.
- 11-03-2009, 03:41 PM #4
Of course there is something wrong! That's why you get that error.
Show me the method write(BufferedImage)in here:
OutputStream (Java 2 Platform SE 5.0)Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
Similar Threads
-
java.lang.Error: Error opening DSound for capture
By NARs in forum NetworkingReplies: 1Last Post: 10-26-2009, 04:38 PM -
Diference Between compiler error Garbage collection and Runtime Error?
By makpandian in forum New To JavaReplies: 3Last Post: 01-23-2009, 08:53 AM -
error 530 error authentication required
By rgale in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 05-12-2008, 04:28 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks