• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get PNG thur Http

 
rexlee123
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is pretty easy to get a text file thru http, however, how can it be done for a PNG file?
 
Matt Midcap
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy,
Sorry I don't know the answer to your question but I'm just playing moderator this time. Please check out our naming policy here ( http://www.javaranch.com/name.jsp ) re-register and come back and see us.
Thanks,
Matt
 
Eric Giguere
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP is a very simple protocol at its core, and the way you get a text file is no different than the way you get a binary file. Just open a connection to the URL and use the input stream to read the data.
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic