DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2003
    Posts
    2

    Question save an image via cgi

    For a little kids-homepage I have written an applet, whithin you can "paint" with the mouse. But now I want to store the image on the server. There is a cgi-script I can call to upload a file (i.e. http://domain.com/cgi-bin/store.cgi?file=image.jpg). How can I do this from the applet? The problem is that I haven't a file "image.jpg" that I could send. In the applet there is only an Image-object. Is it possible to save the file via the cgi-script? Can anybody point me in the right direction?

    thanks

  2. #2
    Join Date
    Nov 2002
    Posts
    59
    I have no idea how to do it with a CGI script...however, you can do it with a servlet very easily by openning a stream with the applet and sending the file that way then writing it with the servlet. If that confused you too much, or you have no way to access servlets, ignore this message. Good luck.

  3. #3
    Join Date
    Feb 2003
    Posts
    2
    Thanks for your answer. I'll try to use a simple client-server solution for this problem. This seems to be the easyest (and fastest) way.

    greetings

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links