How to protect my images

Hi, Here is my web app file structure:
Tomact
Webapps
MyApp
WEB-INF
jsp
>>>>>> 1.jsp
>>>>>>2.jsp
To protect my jsps from direct access from users, I put them under WEB-INF.
Here is my 1.jsp
<html>
<body>
<img src="1.jpg"/>
<img src="2.jpg"/>
</body>
</html>
My questions is where should I put my pic files?
My app requires user login with username and password. Only those who login successfully could see my images.
Thanks,
autogoor

Put them in the Web-INF, and create a Servlet mapped to *.jpg that checks the credentials, sets the content type to the approriate image type, opens up an Inputstream to the real image, then copies them byte for byte to the response's OutputStream.

Similar Messages

  • How can I save the images and movies on a  external Disk from iphoto program, to protect the images when problems occur in the laptop,

    How can I save the images and movies on a  external Disk from iphoto program, to protect the images when problems occur in the laptop,

    Most Simple Back Up:
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex: Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store
    If you want to back up the Photos only:
    Export them using the File -> Export command.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • How Can I Password Protect An Image Field

    Is there a trick that you know of to password protect an image field?
    I have an image field, Only few directors allowed to use it.I want to restrict others from using it.

    I put a button beside the image field that teh user can click to activate it. On the Initialize event of the Image field set the access to "readOnly" (ImageField1.access = "readOnly". Then on the click event of the button use code like this:
    var pswd = app.response("This image is protected by a password. \n Please enter a valid password.");
    if  (pswd == "password"){   ImageField1.access
    = "";} else
    {     app.alert("You entered an invalid password!")
    Paul

  • [Tip] How to protect Image file

    Hello,
    If you have ever wanted to protect your image file,
    especially within your Flash content,
    this article will be helpful.
    First of all, there are some points you need to protect when
    you deliver image data with Flash.
    1. Internet Browser Cache.
    Even though you use 'HTTPS' protocol when you deliver your
    file,
    if it is pass the 'Network (or Protocol) Layer' of your
    machine, it is already in 'plain' data
    (not encrypted), and can be read by Internet Browser.
    Those 'plain' data will be stored in Internet Browser's
    Cache directory.
    There are many Internet Browser Cache reader programs, and
    they can intercept those
    data before the Internet Browser program deletes the cache
    files.
    So, just using 'HTTPS' is not an answer. You need to encode
    your image data
    with your own (or with well known cypher algorithms)
    encoding/decoding methods.
    In this article, I want to explain more detail about this. I
    scramble the image
    so that make it hard to figure out what the original image
    was, not only with human eyes
    but also with 'strong enough' 'Key' length.
    2. Screen Capture.
    Even if you encoded your image data, it will be finally
    shown on your screen,
    without any noises, or any other ugly filters.
    So, you can 'Capture' your monitor screen itself.
    There can be many ways to avoid this. First, you can erase
    the system's 'Clip board'.
    You just can erase it regularly, or you can detect whether
    the Internet Browser -which is
    showing your image data- is active or not and erase clip
    board when it is active (in foreground),
    and hide your Flash area when the browser is inactive (in
    background).
    If a hacker just take a picture of monitor screen with high
    quality Camera,
    you still can avoid that, by showing some black rectangle,
    or any layers on the screen
    regularly only in very short period (like mili-second). But
    I think this way sometimes you feel
    tired or be annoyed when you watch that kind of blinking
    screen.
    == About my code ==
    What I want to present here today is 'modifying(encoding) the
    image' data itself.
    There are many ways you can try for modifying your image data
    and revert it back to original data.
    You can use legacy block cipher algorithms like DES, AES, for
    encoding and decoding the
    image data, because the image data (RGB values) what Flash
    uses is actually a combination of 'bit's.
    But if you decode the 'encoded image' data, you probably use
    'get pixel'/'set pixel' function for
    reconstructing the proper 'RGB' value of each pixel. But I am
    sorry that this function is extremely slow
    so that you need to wait for a couple of minutes to see an
    image.
    So, what I want to show you today is 'Scrambling the image'
    like 'picture puzzle',
    with using 'copyPixels' function which is 'extremely fast'.
    (Actually, there can be many other solutions for this, so
    please don't hesitate to proceed your own research)
    Let's say you have 8*8 pixel size of image blocks, and you
    completely disorder those blocks for
    entire image area. That size of block is too small to figure
    out where it should be, with our
    humble human being's naked eyes. So, you need to know the
    'answer', which is saying what image block
    was originally on which 'cell'. This 'answer' is the 'key'
    for my simple 'image scramble' logic.
    The 'key' I said here, you should understand that, is the
    'key' value of normal 'block cipher' algorithms.
    So, if you know the key, you can rearrange all those 'blocks'
    back, but if you don't know the key,
    simply you can't do that, or you need to wates tremendous
    time for that.
    Here, I use 16*16 size block for your eye's convenience, and
    with 8*8 size of 'matrix' which is
    comprised of each 16*16 size blocks. I mean, one 8*8 matrix
    has 64 blocks, so each block of
    one 'matrix' can be at '1st cell of matrix or 64th cell of
    matrix. So, the 'odds' is 'Factorial of 64',
    which is 64! == 1.268869322e+89 .
    Let's say you know my algorithm (complete source code), and
    you try every different 'matrix' values.
    If it takes 0.001 seconds to test one 'matrix' value you have
    chosen, it will take
    "(64!) / (1000*60*60*24*365) =
    4.0235582250724303685766549129617e+78" Years!!!! to find exact
    matrix value.
    == FLA sample ==
    In my sample *.fla file, I embedded all those 'key' values.
    So, you can not use my sample directly for your
    own project. But I think this sample will give you an useful
    idea for your own implementation.
    <* Exchanging the key values *>
    For example, you need to get the 'key' values from the
    server, only when it is needed.
    You can use 'loadVariables()' function for this purpose.
    But, all data delivered by 'loadVariables()' or
    'getUrl()', or any other functions of Flash, are
    'Cached'.... So, you need to exchange that 'key' values
    more safer way.
    One of that 'safer key exchange' is to use 'token'. For
    example, when the client requests the key value
    to the server, the client should generate an random value (I
    will call it 'token') and send it to the server.
    Now the server modifies the 'key' value 'with the token',
    and sends back to client. Finally, the client
    decode the 'key' value with the token value it generated.
    As you can see, my logic is just 'rearranging each blocks'
    with respond to the given matrix values (key).
    It is really really simple. There in the ActionScript code,
    you can see 3 matrix, and some other variables.
    var chessunit = 16 // Size of block
    var arrayw = 8 // Width of Matrix
    var arrayh = 8 // Height of Matrix
    var arraysize = arrayh * arrayw
    var chessarray = Array (arraysize) // Matrix for decoding
    chessarray = Array
    (64,37,5,35,45,25,52,38,12,61,34,23,3,26,39,58,32,28,17,2,60,16,59,19,57,48,43,18,47,21,4 0,15,31,6,44,46,30,51,27,56,20,24,13,7,42,1,49,54,36,53,9,50,4,8,10,14,33,11,22,63,55,29,4 1,62)
    // In case of the width of an image is not exactly the
    multiple of the width of matrix,
    // we need to encode the right most area of the image.
    // So, I simply use another matrix for only that area.
    // Maybe You can generate more bigger image, of which the
    width of it is exactly the multiple of
    // the width of matrix. And you let the decoder to show only
    the original size of the image.
    // Please try yourself. :)
    var dwArray = Array
    (32,19,3,18,23,13,26,6,31,17,12,2,20,29,16,14,9,1,30,8,10,24,22,11,15,28,7,4,21,25,27,5)
    // In case of the Height of an image is not exactly the
    multiple of the Height of matrix,
    // we need to encode the bottom most area of the image.
    // So, I simply use another matrix for only that area.
    // Maybe You can generate more bigger image, of which the
    Height of it is exactly the multiple of
    // the Height of matrix. And you let the decoder to show
    only the original size of the image.
    // Please try yourself. :)
    var dhArray = Array
    (40,23,4,22,29,16,33,24,8,38,21,15,2,17,37,20,18,11,1,10,12,36,30,27,13,25,28,14,19,32,35 ,7,5,26,3,31,34,6,9,39)
    You can change the block size, matrix size, any values you
    want.
    By the way, if the block size becomes smaller, you'll get
    more stronger security level. But you have to
    compensate it with the slow down of the performance.
    ** Ooops, I can not attach my sample *.fla file, but only
    ActionScript code here...
    But I believe you can try without testing my *.fla sample.
    If you really want to test it, please mail me.
    ([email protected])
    ** You need to 'export' image object, with the name of
    "img0".
    == Image encoder ==
    Encoding (Scramble) the original image is also simple. You
    just need to copy each blocks in reverse of
    the 'ActionScript code'. That's all. You just use same
    'matrix', but copy source and target reverse of
    ActionScript code. I think you can write it with any
    languages you like, C/C++, C#, Java, and
    anything.... right?
    == Block cipher ==
    Now, you know that my implementation is kind of 'intuitive'
    representation of 'block cipher'.
    More precisely, it is called 'ECB', which encodes each
    encoding block (matrix) with the key values
    from the beginning to the end. You can twist the matrix every
    time you pass one matrix area of an image.
    It is called 'chaining'. There are some 'chaining' block
    cipher methods like 'CBC'...
    (If you want to know more, please look up "
    http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation
    Thank you for your time to read my humble article,
    and wish you Good luck. :)

    Hello Crandom,
    If you want to encrypt a critical strings, like special
    server script url or parameters, then it is simple.
    The most simple and faster method is to "XOR ing the string"
    with a key string. You use the same key string when you encode and
    decode (by Just using XOR). This is similar to 'Stream cipher'
    algorithms.
    And there is "open source cipher algorithm" (called
    AS-CryptoLib) written in ActionScript, including most of algorithms
    like Hash, Block cipher, RSA... if you want more stronger
    encryption strength..
    But I bet you also want to encode your script logic itself.
    In that case, you should write your own 'Interpreter'. For example,
    you encode all your ActionScript source code string, and decode it,
    and you interpret each script tokens like 'if' 'for' 'while',
    etc...
    Actually, your question also inspired me to think about
    loading script string and run it on the fly.
    Maybe.... we can start from this article...
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16691"
    I suggest you just use commercial SWF file encrypting tools
    like Ameyata's "SWF encrypt". It changes the SWF file structure so
    that usual 'SWF file decompilers' can not read codes properly.
    And.... If you can use Flex2 (for your current project), and
    it is ok with you (If you don't need to change a lot in your
    current project) to use JavaScript to control your objects or
    behavior of SWF file, then I think there is another possible way.
    After you decode the Javascript string, you load a web page,
    or change the content of HTML file already opened, so that your new
    script will be working, as what you wanted to be. But I didn't test
    it :)
    Best regards.

  • How can i display image in RTF template when Oracle Apps running in Windows

    Can any body help how can i display image in RTF template when oracle apps running in Windows Server.
    Thanks
    Ravi

    Hi Ravi,
    You can add images into your rtf template using MS Word Insert Picture feature.
    Did you try this method?
    Thanks
    Ravi
    [email protected]

  • How to display an image in a window ?

    Hi all,
    Could someone point me to a document that explains (preferably with code samples) how I go about displaying a JPEG image in a window.
    What I'm eventually trying to create is a slideshow, but for now, I just want to add an image to a JFrame and have that display, and even this simple first step is beyond me. There seem to be quite a few different classes to deal with images, but I'm just looking for the simplest one.
    With a view to my future requirements, I will want to be able to dynamically shrink an image so that it fits in the window, as well as cropping images so that the full resolution is displayed, but anything that doesn't fit in the window is chopped off.

    hi,
    how to place an image in the cells of a grid and to drag and drop that image. i have the code to locate the postion of each cell on mouse click. now i want to place an image in particular cell and i want to drag and drop that particular image to other cells of grid.
    is it possible.
    pls give me a suggestion.
    here my code:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class Grid
    public Grid()
    GridPanel gridPanel = new GridPanel();
    CellSelector cellSelector = new CellSelector(gridPanel);
    gridPanel.addMouseListener(cellSelector);
    JFrame f = new JFrame();
    //ImageIcon ii= create ImageIcon("C:/Documents and Settings/sreehari.m/Desktop/new/java //pgm/new");
    //cellSelector.addImageIcon();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(gridPanel);
    f.setSize(400,400);
    f.setLocation(200,200);
    f.setVisible(true);
    public static void main(String[] args)
    new Grid();
    class GridPanel extends JPanel
    double xInc, yInc;
    final int
    GRID_SIZE = 4,
    DRAW = 0,
    FILL = 1,
    PAD = 20;
    int[][] cells;
    public GridPanel()
    initCells();
    protected void paintComponent(Graphics g)
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D)g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
    RenderingHints.VALUE_ANTIALIAS_ON);
    double w = getWidth();
    double h = getHeight();
    xInc = (w - 2*PAD)/GRID_SIZE;
    yInc = (h - 2*PAD)/GRID_SIZE;
    // row lines
    double x1 = PAD, y1 = PAD, x2 = w - PAD, y2 = h - PAD;
    for(int j = 0; j <= GRID_SIZE; j++)
    g2.draw(new Line2D.Double(x1, y1, x2, y1));
    y1 += yInc;
    // col lines
    y1 = PAD;
    for(int j = 0; j <= GRID_SIZE; j++)
    g2.draw(new Line2D.Double(x1, y1, x1, y2));
    x1 += xInc;
    // fill cells
    g2.setPaint(Color.red);
    for(int row = 0; row < cells.length; row++)
    for(int col = 0; col < cells[0].length; col++)
    if(cells[row][col] == FILL)
    x1 = PAD + col * xInc + 1;
    y1 = PAD + row * yInc + 1;
    g2.drawString("("+row+","+col+")" , (int) x1+50, (int)y1+50);
    //g2.drawString("("+Grid("+row+","+col+")+")" , (int) x1+50, (int)y1+50);
    // g2.drawString("("")" , (int) x1+50, (int)y1+50);
    // g2.fill(new Rectangle2D.Double(x1, y1, xInc - 1, yInc - 1));
    public void toggleCellColor(int row, int col)
    int mode = DRAW;
    if(cells[row][col] == DRAW)
    mode = FILL;
    cells[row][col] = mode;
    repaint();
    private void initCells()
    cells = new int[GRID_SIZE][GRID_SIZE];
    for(int row = 0; row < cells.length; row++)
    for(int col = 0; col < cells[0].length; col++)
    cells[row][col] = DRAW;
    class CellSelector extends MouseAdapter
    GridPanel gridPanel;
    public CellSelector(GridPanel gp)
    gridPanel = gp;
    public void mousePressed(MouseEvent e)
    Point p = e.getPoint();
    int col = 0, row = 0;
    double x = gridPanel.PAD + gridPanel.xInc;
    // find column
    for(int j = 0; j < gridPanel.GRID_SIZE; j++)
    if(p.x < x)
    col = j;
    break;
    x += gridPanel.xInc;
    // find row
    double y = gridPanel.PAD + gridPanel.yInc;
    for(int j = 0; j < gridPanel.GRID_SIZE; j++)
    if(p.y < y)
    row = j;
    break;
    y += gridPanel.yInc;
    gridPanel.toggleCellColor(row, col);
    }

  • How to add an image to combo box model in java

    i want to display a images.for that i take a combox.in that i want to add al images those i want to display, while clicking the image in combo box the image will be display.there is no problem for displaying an image, but i dont know how to add
    an image to a combo box model in net beans. please help me. if u have any idea plese forward to this mail
    [email protected]

    Hi Thomas,
                     You need to create an image field and in the source choose 'graphic content ; give the name of the variable which has the binary data . and give the type as 'MIME/image'.

  • How to delete an image from a Slideshow in Adobe Muse

    In Adobe Muse, I've created a slideshow through Slideshow Options > Add Images. I know how to replace an image, but how do I delete an image from the slideshow? I don't see that option anywhere.
    Thanks.

    It worked - I deleted it from the thumbnails. Thanks.
    On Sun, May 3, 2015 at 12:12 PM, Brad Lawryk <[email protected]>

  • How to Upload Mutilple Images in content repository?

    Hi
    How to Upload Mutilple Images in content repository?
    I have a html which shd be displayed and it has 3 images which shd be displayed
    in the same page
    Here i am able to display the HTML uploaded in content repository
    but the images are not displayed,since the path is not valid for the images.
    Can any one hint me in this,
    wating for the reply
    Thanks in Adv
    Regards
    Suresh

    Suresh, your html specifies an image at resources/images/privacy.gif - is that
    image in your repository at the correct relative position to where yout html is?
    Your html and repository structure must match. So if the html you posted is at
    /BEA Repository/foo.html
    then privacy.gif must be at /BEA Repository/resources/images/privacy.gif
    James
    "Suresh" <[email protected]> wrote:
    >
    >
    >
    Hi James
    Here i have attached my sample html and image
    My Repository Structure is as follows :
    Virtual Content Repository
    BEA Repository
    MainImage type image
    Privacy type i created
    ----StartDate
    ----EndDate
    ----File Upload
    My HTML
    <HTML>
    <HEAD>
    <TITLE> New Document </title>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </head>
    <BODY>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td class="norBold"><img src="resources/images/privacy.gif"
    width="123"
    height="73">Privacy
    Policy</td>
    </tr>
    <tr>
    <td class="formHeadBack" height="19"><b> Privacy Policy</b></td>
    </tr>
    </body>
    </html>
    and
    one image
    Thanks in Adv
    Suresh
    "James Owen" <reply.to@newsgroup> wrote:
    Suresh, how is your content structured and what does your html looklike?
    If you
    could post examples, that would be helpful.
    thanks,
    James
    "suresh" <[email protected]> wrote:
    Hi
    How to Upload Mutilple Images in content repository?
    I have a html which shd be displayed and it has 3 images which shd
    be
    displayed
    in the same page
    Here i am able to display the HTML uploaded in content repository
    but the images are not displayed,since the path is not valid for the
    images.
    Can any one hint me in this,
    wating for the reply
    Thanks in Adv
    Regards
    Suresh

  • Flex 4 Mdi canvass, how to set background image..?

    Hi.,
         Now i try to use mdi canvass  background image,how to set  background image in mdi canvass in flex 4..
    With Regards
    LinFlex-

    In the past flex 3 version, there is an attribute call <flexlib:MDICanvas  backgroundImage="@Embed(source='/imgFolder/imgFile.png')/>
    to set it. However it has problem in Flex 4 because of 'halo' and 'spark' theme library changed.
    The following is my post that still haven't found the answer.
    Dear all,
    We  have a project that doing migration from flex 3 to flex 4. We use  flexlib the latest version of
    flexlib - 2.5 - flex4.zip.
    However we  confronted problems that several of attributes that flex 4 doesn't  support:
    Constraints are listed as follows:
    1) <flexlib:MDICanvas  backgroundImage="@Embed(source='/imgFolder/imgFile.png')/>
    2)  <flexlib:MDICanvas backgroundSize="auto"/>
    3)  <mx:ApplicationControlBar barColor="#000000">
    original error message:
    ====================================================
    Description     Resource    Path    Location    Type
    The style 'backgroundImage' is  only supported by type 'flexlib.mdi.containers.MDICanvas' with the  theme(s) 'halo'.    MainView.mxml     /osss/flex_src/hk/gov/labour/osss/view    line 242    Flex Problem
    Description    Resource    Path     Location    Type
    The style 'backgroundSize' is only supported by type  'flexlib.mdi.containers.MDICanvas' with the theme(s) 'halo'.     MainView.mxml    /osss/flex_src/hk/gov/labour/osss/view    line 242     Flex Problem
    Description     Resource    Path    Location    Type
    The style 'barColor' is only  supported by type 'mx.containers.ApplicationControlBar' with the  theme(s) 'halo'.    MainView.mxml     /osss/flex_src/hk/gov/labour/osss/view    line 227    Flex Problem
    Regards,
    Man  Pak Hong, Dave
    manpakhong
    [email protected]

  • How do I flatten images in Illustrator?

    How do I flatten images in Illustrator?

    The Object>Flatten transparency does not change the kb for the document.
    I'm trying to make the piece smaller so I can send it via drop box or
    yousendit quickly.  The original is 55+kb and takes a couple of hours to
    download (I'm not in a community so I don't have really fast internet). I
    thought if I could flatten the images it might help but Object>Flatten
    doesn't seem to work.  Would it change the kbs or leave them the same and
    just make it send faster?
    Coyotes Singing Studio
    HC 63, Box 31
    Monticello, UT 84535
    435-459-9691
    [email protected]
    LOVE, LEARN, AND BE KIND.
    On Sat, Jan 11, 2014 at 3:27 PM, Larry G. Schneider <

  • Can any one tell me how to stream the images in flash.

    Hello Friends,
    i have created a dynamic page flip book with xml, i want to
    zoom the images in swf loaded, with streaming, so that user can
    preview the image while a good quality image is loading. I wanna
    know that how to load a part of large image or swf.
    Image effect like :-
    http://www.zoomify.com/
    Can any one tell me how to stream the images in flash.

    On Thu, 17 Apr 2008 05:53:27 +0000 (UTC), "FlashDavil"
    <[email protected]> wrote:
    >I wanna know that how to load a
    >part of large image or swf.
    You show a preview and use loadMovie() to load a big file.
    You can
    create a preloader (progress bar) showing how much part is
    loaded,
    while user sees the small image. When you achieve 100% tou
    show that
    big image. What's more?
    > Can any one tell me how to stream the images in flash.
    What are you talking about is not a "streaming", but
    "progressive
    download". Images "streaming" is impossible.

  • How do you change image size in the title window?

    I just changed operating systems to Windows 7, which meant that I had to re install Premiere Pro CS4. I am now working on a 64 bit system. Might not make any difference, but thought I would give you the specifics just in case.  When I pull up the title window to add a title to my clip, the image is about the size of a postage stamp. How do I increase the size of the image in that window?

    Thank you again for responding Hunt. I did find out what what was happening.
    I had to reinstall the program on my computer. I just upgraded to Windows 7, and I now have a 64 bit system. When I booted up PPCS4, I assumed that my settings would be the same as they were before when I had Vista installed and didn't bother to check them when I started a new project. Well, they were not. I also added a TV tuner card to my computer. I now can watch HD TV on my computer. I suppose that it is possible that somehow PPCS4 noticed that, and set my default settings to HD, rather than NTSC DV. I just merrily went along clicking the OK button and started editing. When I start a new project now, I select NTSC DV and the Title window works just fine, and exactly the way I expect it to.
    I just received Jeff Bellune's book Adobe Encore DVD 2.0 in the mail and will be totally immersed in Encore studies today. With all of his children, I don't see how he had time to write it, but I'm glad that he did. I also ordered a book entitled Designing Menus with Encore DVD. I know that it was written for an earlier version than CS4, but I will trust what you said about that. Many things are the same with some minor variations due to upgrades in the program. The basic ideas don't change, but how you accomplish them can, and usually do over time.
    Terry Lee Martin
    Date: Mon, 17 Aug 2009 16:04:16 -0600
    From: [email protected]
    To: [email protected]
    Subject: how do you change image size in the title window?
    Welcome to the forum.
    That is an odd one. The Title should be the same Frame Size as your Project/Sequence. What is it's Frame Size? Also, are you perhaps doing a Title based on an older Template, that was done for a different Frame Size?
    What happens if you choose Title>New Title>Default Still?
    Good luck,
    Hunt
    >

  • How-to protect static content

    Hi !
    I have a site with many files (pictures, XML files, etc)
    How can I protect those content from unauthorized access / sniff ?
    I was thinking in two options
    1) a filter servlet, validating sessions permissions etc
    2) a servlet to write out the files (...)
    Any other suggestion? best practice?
    Regards
    Joe

    Actually yes each server has its own realm implementation but it is all configured and handled by the server and does not affect the portability of the application.
    How to protect the static pages is dependant on how you allow access to your web application.
    If you don't have any security in the web app you then put any files that you don't want accessed in the browser in the WEB-INF folder. Images and other files that are accessible in the browser you put in folders with an index page to prevent users from seeing the directory structure.
    If your application uses server managed security you include you use this security to manage access to the files.
    If you are using application based security then you go with a filter.

  • How to convert jpeg images into video file of any ext using JMF

    I want to convert the Jpeg files into video clip with the help of JMF
    any one can help me?
    Plz reply me at [email protected]
    or [email protected]

    I'm not sure of his/her reasoning behind this, but I have yet to find a way to record video with mmapi on j2me. So with that restriction, I can see how one could make it so that it just records a lot of jpegs, and then makes it a movie.
    I would be interested finding a workaround for this too. Either if someone would explain how to record video with mmapi or how to make recorded images into a video. Thanks!

Maybe you are looking for