----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------



Thad Parker wrote:
> 
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
> 
> >> Is it possible to mirror image files from a servlet?  All I
> >> want to do is
> >> have the user enter the URL of an image into a form and then have the
> >> servlet mirror the image to the server.  I can't seem to
> >> figure out where to
> >> start even trying to do this. Any help would be greatly appreciated.
> >>
> >> Thad
> >
> > I'm not sure what you mean by "mirror image".  Do you mean, make the http
> > request to get the image then write the binary data to the file system?
> 
> That's exactly what I mean.  Both jpegs and gifs.  No need to modify them,
> just get em and save em to the server.
> 
> Thad
> 


Sure just use java.net.URL to get the contents of the URL the user
inputs
and write it to a database BLOB field, or write it to some file on the
localfile system and save an identifier in the database to point to the
local file for calling it back later.


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to