Where is a right place for uploaded photos: in/out of a container?

I have an impression that the type of directory shalln't be context related since a web application can be deployed in the form of .war file without expansion at least from the Tomcat 4.
A problem of this setting is that a web server (on the top of the container) appends the scheme ("http:") and the server name in the front of the phyical path to yield a invalid path.
So what is the right way to have a photo upload directory?
Thanks for your input.
v.

Hi,
I think there are three ways for a File Upload Functionality.
1. Uploading the files to the Web Server's Path (which obviously has the problem that you have quoted)
2. Uploading the files to temporary directory and then writing them to the database in teh form of Binary content. This has the overhead of the file being stored in the DB.
3. Uploading the files to a predefined directory. It could be any directory in the Application Server where you want to store it. it could be something like D:\Uploads. Now you need to write a Servlet which picks up the File from the Directory and then displays it with the respective Content Type.
I think the third Method is more flexible but it has its disadvantage. The predeined directory should be loacted in the same machine where the Application Server is located.
Hope this gives an idea how to do it.
If you still have doubts, let me know.
Thanks and regards,
Pazhanikanthan. P
Senior Software Engineer,
IT Solutions India Pvt. Ltd.,
Madras - 600 006.

Similar Messages

  • Where is the best place for suggestiong requesting features?

    Where is the best place for suggesting/requesting features?
    If something like this already exists, please let me know.
    I often wish when I select a word to right click and choose dictionary to to find out the meaning of the word. Currently I have to copy, go to a dictionary web page, paste and search. And I spent a lot of time for that. I'm not that technically oriented to suggest how this can be achieved but just as an idea, may be Mozilla can partner with dictionary web sites by making a plug ins or include a dictionary with Firefox itself

    I am sure there are Extensions that do this.
    DictionarySearch - https://addons.mozilla.org/en-US/firefox/addon/68/
    Add-on search for Dictionary - https://addons.mozilla.org/en-US/firefox/search/?q=dictionary&cat=all&lver=any&pid=1&sort=&pp=20&lup=&advanced=
    Feedback - http://hendrix.mozilla.org/

  • What format and size must I use for uploading photos in Creative Cloud?

    I don't know what format (TIF, JPG etc.) and size to use for uploading photos into the cloud.

    Hi John,
    There are no restrictions on the file types you can store in Creative Cloud. However, you’ll be unable to share some file types, such as audio, video, fonts, executable, and application extensions. Sharing of these files is restricted for copyright and security reasons.
    Details here : http://helpx.adobe.com/creative-cloud/kb/cannot-share-certain-types-files.html
    Thanks,
    Manish Sharma

  • Why does it take so long for uploaded photos to appear in the photos folder?

    It takes too long for uploaded photos to appear in the photos folders.  I do not like the "new" photos.  I much prefer iPhoto.  Can I make iPhoto my default or am I stuck with this stupid Photos???  Editing is lousy, too.

      Can I make iPhoto my default or am I stuck with this stupid Photos?
    You can continue using iPhoto depending on what version your have?  Currently the only version that runs with 10.10.3 is iPhoto 9.6.1.  What version do you have?  Also do you have a backup copy of your iPhoto library made just prior to upgrading to 10.10.3?

  • The right place for Windows 10 Server???

    Hi ,
    I don now of this is the right place for a problem with Windows 10 server ,
    I am test it for my company and by Hyper-V I found a problem.
    If I setup a vm it works , can access the vm by rdp all works  but if I view to Hyper-V manager I see no VM
    so you can not access or manage from hyper-V manager the vm's , if I look to the disk index , there I see the VM 's.
    Greetings , Leo

    They're over here.
    Windows 10 Preview forums on Microsoft Answers
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • I did not find the right place for my question but Is Apple's products are shipped to the Gulf States by a company Aramex ?

    I did not find the right place for my question but Is Apple's products are shipped to the Gulf States by  Aramex ?

    An absolute URL will be a complete URL, it traces from the abosulte root of a file's location on a server...
    http://www.thesite.com/assets/images/Front_Page_Rotating_Banner/banners.xml
    A relative URL is anything short of including the http://domain..., and is read relative to wherever the file using it exists
    assets/images/Front_Page_Rotating_Banner/banners.xml
    In Flash files though, relative links need to be specified relative to the HTML page that embeds the swf.  So if the swf is in a different folder than the html page that embeds it, the swf's targeting must be adjusted as if it were actually in the html file's folder.

  • Why no "Places" for imported photos?

    Right now, most of my photos on the iPhone were imported using Photo Stream (which means they were taken on the iPhone, saved to my computer, then reimported to the iPhone using Uploads in Photo Stream.)  The iPhone will not display the "Place" for any of the reimported photos (although all those photos still have location data).  Any idea why this is, or how to solve?

    Hi,
    First of all, this is a user-user forum and although some employess do pop in from time to time, Adobe don't monitor this one.
    It could be that your problem is not that common which is why you haven't had any other replies.
    It is possible that your thumbnail cache has become corrupted. Here are some suggestions for fixing the problem: http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#_Recrea te_Organizer_thumbnails
    Can I assume you are using Windows?
    Have you tried right clicking on one of the hour glasses and selecting Update Thumbnail to see if that one gets generated?
    Good luck
    Brian

  • HT4539 I have 2 year old I-phone 4 that has never been updated. I need to download an update from my computer but can not find the right place on the I-Tunes page. Do you know where is the right place to update a phone that does not have an "update" butto

    My (old, never updated) I-phone has no "update" button in Settings and I would like to update it. I can not find the right place on I-Tunes to download the updates. Do you know where to look?

    Update your iPhone, iPad, or iPod touch - Support - Apple

  • What is resolution for uploading photos to Walgreens?

    Hi:
        I just bought my first Mac computer and am trying to do the proper upload to Walgreens.  I successfully installed the automated uploader.  My question is from a PC, when I upload photos I have the option of choosing to upload in both a medium and high resolution mode.  With my iMac, when I do an upload, the Walgreens' software does not give my a choice of high or medium resolution.
        Do any of you know what the default upload to Walgreens is or how I choose the option?
    Thanks very much!

    Hi!
    Walgreens will take whatever uploads you send and will resize accordingly. I use walgreens a lot and I don't bother to resize my pics.
    However, if you do have super-high-res JPG's and you want to save upload time, you should account for 300dpi and export your photos accordingly.
    For example, if you only want 4x6's you want to export your selected photos to a folder, and choose a limit of 1800 pixels (6 x 300 = 1800) or if you want 8 x 10 you can go for (10 x 300 = 3000 pixels)
    Resizing locally will save you upload time since DSL/Cable upload much slower than they download. And don't worry, 300dpi here isn't the same as on inkjets. The pictures are still way clearer and more robust (conventional photo paper) than, say, "1200 dpi" types of printers.

  • [solved] whats the right place for community repository bug reports?

    was about to write a bug report, but there was no category for packages:community.. is the forum the correct place for this?
    pacman -S freevo
    resolving dependencies...
    error: cannot resolve "python-pysqlite-legacy", a dependency of "freevo"
    error: failed to prepare transaction (could not satisfy dependencies)
    :: freevo: requires python-pysqlite-legacy
    Last edited by schuay (2008-12-11 18:17:21)

    schuay wrote:
    was about to write a bug report, but there was no category for packages:community.. is the forum the correct place for this?
    pacman -S freevo
    resolving dependencies...
    error: cannot resolve "python-pysqlite-legacy", a dependency of "freevo"
    error: failed to prepare transaction (could not satisfy dependencies)
    :: freevo: requires python-pysqlite-legacy
    When you go into the bug tracker, there's a drop down list on your left that says "Arch Linux". Go into there, select "Community Packages", and pres the "switch" button right next to it.

  • Where are the right parameters for styles

    Hi there,
    after a upgrade from SPS12 to SPS15 on a java-only portal, the letters from the menue in the uwl like refresh or check connection status and all the topics in the workflowlist have big letters than before.
    Does anybody knows a hint, where I can set the right parameter for that?
    I noticed that only in webdynpro iviews.
    Best regards
    Christian

    thanks for you hint,
    but thats too easy :o)
    I know where I can change the portal theme, I´m looking for the right parameter in the theme editor :o)
    Regards
    Christian

  • Where is the good place for ejb3.0

    I am where is a good place to learn EJB3.0 step by step. I could not find a place from sun.
    THanks!

    The EJB 3.0 spec is still being revised, so all the documentation out there should not be considered authorative. There aren't any major changes in the works, but the details and syntax will likely change between now and when the spec is declared final. We will put out a Java EE 5 Tutorial beta (with EJB 3.0 info) in the fall, when all the specs have stabilized.
    Oracle's site on EJB 3.0 has some good stuff, although it's based on an old draft of the spec, so keep that in mind.
    http://www.oracle.com/technology/tech/java/ejb30.html
    The EJB 3.0 spec itself is available here:
    http://jcp.org/en/jsr/detail?id=220
    -Ian Evans

  • Drag and drop photo files into photo lab website for uploading photos, worked in old version but not in new version.

    drag and drop ability not available in new version. I am trying to upload a large number of photo file to an online photo site for processing and the drag and drop does not work it did on the old version.

    Nothing to be fixed. Just a little learning for you.
    There are many, many ways to access your files in iPhoto:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the iPhoto Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and 10.5 Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Show File:  a. On iPhoto 09 and earlier:  Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.    3.b.
    b: On iPhoto 11 and later: Select one of the affected photos in the iPhoto Window and go File -> Reveal in Finder -> Original. A Finder window will pop open with the file already selected.

  • IDS 4215, right place for a sniffing interface (DMZ or LAN)

    I have got at work this sensor with two interfaces only, I have been asked to check that
    IDSWORK# show version
    Application Partition:
    Cisco Systems Intrusion Detection Sensor, Version 4.1(1)S47
    OS Version 2.4.18-5smpbigphys-4215
    Platform: IDS-4215
    one interface which is Ethernet 0 connected to switch in DMZ , and Ethernet 1 connected to switch 4005,,,,logically I have to monitor DMZ zone not switch 4005 (since I have got only two interfaces, my case),,,Am I right ?
    That means Ethernet 0 should be for sniffing (monitoring)since it is connected to DMZ,and interface 1 for command and control since it is connected to 4005 switch, but according to cisco specification
    http://cisco.com/en/US/products/hw/vpndevc/ps4077/products_configuration_guide_chapter09186a008055df7d.html#wp1051279
    Table 5-2
    FastEthernet0/0: Interfaces Supporting Inline VLAN Pairs (Sensing Ports)
    FastEthernet0/1: Interfaces Not Supporting Inline (Command and Control Port)
    Note: Cisco has mentioned FastEthernet, the one that I have got Ethernet ,,,,does make any difference ?
    Since I have not done that configuration , it has been done by some one else, do I need to change that ?

    Looks like your IDS come with basic ports (2 x Ethernet) with E0 as C&C port, while E1 is monitoring port.
    BTW, Ethernet/FastEthernet ports are actually the same.
    To monitor your DMZ segment, place the E1 in that segment, while E0 on inside segment where besides direct managing the box from its web management GUI or CLI, you can probably can use basic VMS that is bundled free with it.
    And since you have dedicated switch to host the whole DMZ segment, you can easily monitor (SPAN) the whole box and send all traffic to IDS.
    Whether or not you need to change the config, you probably need to check it out, at least to verify which signature(s) is enabled/disabled, and pc/mgt host is allowed to access the box and so on. But it's a good practise to check and review the config/setup again as this is a security box that you need to trust to monitor and tell you about any possible threats, attacks or violations.
    HTH
    AK

  • Step by step procedure for uploading photos from iPhone to a PC

    I have over 4000 pictures taken with iPhone, but still not yet be able to upload them to a PC.
    1) When connected to my IBM Thinkpad X40 with Windows XP, it says "device not on" when iPhone is off, and says "device is in use" when iPhone is on.
    2) When connected to my IBM Thinkpad Lenovo T60p, it says "camera detected succssefully", but just does not upload.
    Can any one help me with a specific stepwise procedure? Do we need to install some special iPhone driver for the uploading? As you know, the iPhone manual says that the iTune is only one way sync for album.
    Many thanks,

    Hi Nathan,
    Thanks for the reply. I could see "Apple iPhone" when I plugged it in (not as a removable device), but it alwayse says "the device is being used" when I turn the iPhone on, and says "device is off" when I leave the iPhone off, which is a paradox. What mode do you leave your iPhone on when you do the transfer? Any setting is needed in iPhone itself? Do I need to install a specific driver for iPhone (I do not recall one with the purchase)?
    Regards,
    Jensen

Maybe you are looking for