| | |
I/O Binary stream
![]() |
•
•
Join Date: Apr 2008
Posts: 2
Reputation:
Solved Threads: 0
Hi.
I've built a HttpServlet that catch a request and parse a web page using InputStream, InputStreamReader and PrintWriter changing some content along the way and output it as a response. Everything works like a charm (parsing html, css, gif, jpg, aso) except for png images.
Since png's are binary files (correct me if I'm wrong) my guess is i need to use something other than InputStream, InputStreamReader and PrintWriter to parse the png's. But what and how do I use it?
Thanks in advance.
I've built a HttpServlet that catch a request and parse a web page using InputStream, InputStreamReader and PrintWriter changing some content along the way and output it as a response. Everything works like a charm (parsing html, css, gif, jpg, aso) except for png images.
Since png's are binary files (correct me if I'm wrong) my guess is i need to use something other than InputStream, InputStreamReader and PrintWriter to parse the png's. But what and how do I use it?
Thanks in advance.
•
•
Join Date: Nov 2008
Posts: 33
Reputation:
Solved Threads: 2
•
•
•
•
Hi.
I've built a HttpServlet that catch a request and parse a web page using InputStream, InputStreamReader and PrintWriter changing some content along the way and output it as a response. Everything works like a charm (parsing html, css, gif, jpg, aso) except for png images.
Since png's are binary files (correct me if I'm wrong) my guess is i need to use something other than InputStream, InputStreamReader and PrintWriter to parse the png's. But what and how do I use it?
Thanks in advance.
![]() |
Similar Threads
- Binary File IO (C#)
- Skip initial 4 bytes in a binary stream (C++)
- spaces in binary file not showing (C++)
- searching and inserting node in a binary search tree (C)
- Reading Binary files via stdin (C++)
Other Threads in the Java Forum
- Previous Thread: working beep method in java.
- Next Thread: java and sqlserver BIG problem??
| Thread Tools | Search this Thread |
android api applet application apps array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card class classes client code collision columns component constructor crashcourse database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer html ide image inetaddress integer intellij j2me java javadoc javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop machine map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle physics plazmic print problem program project radio recursion scanner server set sharepoint smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads tree trolltech unlimited utility webservices windows





