This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes Save Image into different domain Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Save Image into different domain" Watch "Save Image into different domain" New topic
Author

Save Image into different domain

Nicky Eng
Ranch Hand

Joined: Mar 26, 2005
Posts: 378
I have one function to upload an image.

I need to save image into different domain.

So when client call my API, pass in the photo as multipart type, then I need to save it into different domain.

Does my code below Workable? I mean will it save into the stat.abc.com/userpt/ OR will hit error ?
Note: below piece of code running in app.abc.com domain. But both domains are in the same server.


please help



From NickyEng
Diploma in Computer Studies
SCJP 1.4
SCWCD 1.4
Formula 1 app by Maxis (Playbook)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41123
    
  45
Code doesn't run on a "domain", it runs on a computer - a server apparently in your case. Whether files can be saved in some other directory on the same computer is a question of permissions.

What will definitely not work is using an "http" file name. You need to translate that into an actual directory name.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Save Image into different domain
 
Similar Threads
Using Eclipse SWT Image, JDBC SQLite and JAVA to insert, store and retrieve Images.
how to create an image through bufferedimage,image and other helper class using byte array
Convert image to byte[] and viceversa
Writing Image onto a WordDoc
need help with ImageInputStream types